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

Report Viewer, Landscape view inaccurate with page count

1 Answer 480 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ron Weingarten
Top achievements
Rank 1
Ron Weingarten asked on 03 Mar 2014, 10:52 PM
Current Telerik Version: Q1 2014 (Just updated)
Type of project: WinForms

Hello,

I am currently having a problem with my report viewer showing an inaccurate count of page numbers for my Telerik Report.  After looking into the issue more, I found that the viewer shows additional rows when viewing, then what is printed out on paper.  It looks to be around the height for a normal Portrait view when viewing it, andit still stretches its width to fit a landscape view (so its around 11" x 11" when viewing, but 11"w x 8.5"h when printing).

I have set the report PageSettings as follows:

this.PageSettings.Landscape = true;
this.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Letter;

I assumed that having it set to Landscape true would get the desired results for the report.  I also have been unable to find a setting in the report viewer that forces the document viewer to view the report in a specific size.

Is there something I am doing wrong?  Is there a setting that I need to set in order for the viewer to recognize that it is a landscape layout and not a portrait layout?

Thank you for your assistance.

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 06 Mar 2014, 04:52 PM
Hello Ron,

By default the report displayed in the Report Viewer is shown in Interactive View layout. The Interactive View layout is a logical layout that removes the strict restrictions for report pagination and it is not affected by the report page settings.
In order to view the report in the Report Viewer based on the page settings you need to switch to Print Preview layout. You can switch the layout via the "Switch to print preview" button in the Report Viewer toolbar, or you can set the ViewMode property of the Report Viewer in your application.

Regards,
Nasko
Telerik

DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

Tags
General Discussions
Asked by
Ron Weingarten
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or