Friday, February 29, 2008

How to make your ReportViewer(Local Mode) display in FULL PAGE?

.Net Framework Used: .Net 2.0

Usually when you have created your report using Report Viewer, it has toolbars on top and scrollbars for both horizontal and vertical border. The report will be display inside the body of ReportViewer control and when you write it to printer to print it as image, the printer will render it as how it looks (With both scrollbars and you can not view the report in full).

To View it in full and remove those scrollbars, simply, set the properties of ReportViewer Control (AsyncRendering) to false:-

<rsweb:ReportViewer ID="ReportViewer1" AsyncRendering="false" runat="server" ...

Then it will display in full size in a page.

No comments: