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

ReportViewer display in WinForms

1 Answer 143 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 2
Dan asked on 24 Feb 2011, 08:45 PM
I'm using the same reports/charts to display in both Web pages and in WinForms.  In the web pages the reportviewer displays the report with no margins in a 7-inch wide by 4-inch tall display.  On printing, these print nicely with margins as set in the PageSettings properties.

Whereas, in my WinForm pages, the reportviewer displays the report in "page" mode with the PageSettings margins.  So there is a long vertical scroll bar with the lower 60% of the "page" blank.  Is there any way to get the WinForm reportviewer to display compactly with no margins and no vertical scroll bar, like the web pages do?

Dan

1 Answer, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 25 Feb 2011, 01:02 PM
Hello Dan,

The output of a report rendered in HTML and Image rendering (i.e. Web and Windows Forms) differs because both medias are quite different. The 1st (HTML) is dedicated to displaying information on screen and the page is infinite by width and height; in contrast the 2nd format - Image (PDF)- supports physical pages and is meant not only for reading on screen but for printing.

According to whether the format supports physical pages, we separate the export formats on two groups: page-oriented (PDF, Image (print preview), print, XPS, RTF) and non-page oriented (HTML/MHTML, Excel, CSV).

For the page-oriented formats the content layout is on horizontal and vertical pages according the page settings of the report, while for the rest of the formats take into considerations other characteristics of the media like the grid of the Excel worksheet.

So to recap and answer your question directly, the WinForms viewer cannot display the report in non-page oriented way in the current version, but we would consider introducing interactive layout for the other viewers for future versions of the product.

Kind regards,
Steve
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
General Discussions
Asked by
Dan
Top achievements
Rank 2
Answers by
Steve
Telerik team
Share this question
or