This is a migrated thread and some comments may be shown as answers.

Winform Designer Pagesize vs Viewer

4 Answers 85 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Troy
Top achievements
Rank 1
Troy asked on 16 Jul 2015, 02:19 AM

Hi All,

I'm getting a weird problem with page size/printable region with reports.

Started getting it in version Q3 2014 and upgraded to Q2 2015 and still getting it.

I designed a sample report real fast using the Band Report wizard to demonstrate the problem (see attached).

I design a report as Portrait Letter using the wizard, margins are 0 for Left and Right in the screenshot (tried .2in,...)  It appears that when the reports are rendered they are being scaled down or something.  See attached image and note the ruler at the top of the designer and the difference in the Viewer below it...

Its not occurring with any applications like Word/Excel or any other print operation.  Tried printing to Printer, XLS and PDF and its all the same.

Any ideas?  I've tried playing with margins, paper size,... In code I set the viewer to view the print layout and landscape=false and that's it.

:-s

Thanks

4 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 20 Jul 2015, 12:17 PM
Hello Troy,

Report items like TextBox and HtmlTextBox are designed to grow vertically to accommodate their content, thus it is not expected TextBox items to grow/shrink in horizontal direction - Design Considerations for Report Item Layout.
Please check the zoom mode in the VS Report Designer, and the report's Width compare to the report's PageSettings.PaperSize.Width. Also test running the Print preview of the report which will show you the document's physical layout - Interactive vs. Print Layout.

If you need further help, please record a video illustrating the report in Print preview, and the difference with the document exported in PDF format. the video can be zipped and attached in a support ticket.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Troy
Top achievements
Rank 1
answered on 24 Jul 2015, 12:23 AM

Thanks for the response, I've checked the above settings and all is well.

I'm actually not having any issue in the Designer in VS.  It works and looks fine.

This issue occurs at runtime only.  I've tried a lot of things since you're response and have new info...

I created a brand new solution with a Telerik Report Library and added one report.  Added a Winform Project and a Telerik Report Viewer Form (via template) and set it to the Report from the library.  Set form to be the startup form.

It opens with the report scaled down, both Horizontal and Vertically at about 77% of full size.  Fonts and everything shrinks (as in attached image).  An odd thing is that with a Letter size Portrait report the report opens at a Height of 8.5", which is 77% of 11".  I think the Height is getting confused with Width somehow/somewhere and the width is then getting scaled to maintain the aspect ratio.  Maybe just coincidence though.

Added a WPF application and viewer and set it to start up.  It works great.

Copied the files to a thumb drive and ran on Windows 7 machine.  Same exe's ran great.  No scaling issues at all, printed fine also.

It is restricted to WinForms Report Viewer at Runtime, possibly Windows 8.1 Pro only.  I develop on a Windows 8.1 Pro machine which is where I have the issue.  A Windows 7 Pro machine ran same exe and reports without issue.  I was thinking that some OS settings might be getting pulled into the WinForm Report Viewer (Accessibility, Font/Icon sizes or some setting like those) but haven't seen any settings that are other than default.  Tried the Control-Mousewheel to zoom but that wasn't it either.

I'm going to check this evening with another Windows 8.1 box I can test on.  I'm going to run it off the thumb drive, same exe's and report, I'll see if it's a problem with my specific machine or happens on other 8.1 machines.

This is with Q2 2015 versions of reporting libraries with libraries copied to output folder.  I'll post again later tonight with those results. 

I may switch this to a Help Desk Ticket after the test tonight...

Thanks

0
Troy
Top achievements
Rank 1
answered on 24 Jul 2015, 04:13 PM

Well, that didn't go well.

The other Windows 8.1 rendered the report at about 10% actual size.

I suspect there is something going on at a lower level library like system.drawing or something to do with Window 8 screen resolutions (SSRS had issues with that also).  Am I the only one experiencing this issue? 

I'm writing a WPF User Control library project now and will dump a WPF Reportviewer in it and try using the WinForm WPF integration control, I haven't used it before but I'm thinking that should work without having to rewrite this app at this time.  I can toss the reports with their Parms and datasource loaded at the WPF viewer that way.

0
Stef
Telerik team
answered on 28 Jul 2015, 03:10 PM
Hi Troy,

Please check the Windows 8.1 machine's Control Panel\Appearance and Personalization\Display and check if the Magnifier tool uses the Default 100% value.

The report in the WinForms ReportViewer is rendered by the image rendering mechanism, which may be affected by the machine's resolution (which might be the reason to get different result on different machines).

We will be waiting for your update.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Troy
Top achievements
Rank 1
Answers by
Stef
Telerik team
Troy
Top achievements
Rank 1
Share this question
or