I am using C# winform reportviewer 2010.
I changed the default option to view reports to Print Layout (Whole page) with SetDisplayMode(). However since Whole Page is the default zoom option for print layout, even if I set the ZoomMode to PageWidth in the designer,when the report loads, it resets to Whole page. Is it possible to programatically set the ZoomMode to Page width after setting the displayMode?
Thanks
reportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout);
Nevermind, I figured zoomMode could be set this way:
this.reportViewer1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.PageWidth;
Maybe you can do like this:
Fill all report parameters
Then you refresh your report in order to show your data
myReport.RefreshReport();
Finally set this properties
myReport.ZoomMode = ZoomMode.Percent;
myReport.ZoomPercent = 100;
I hope it helps you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With