ReportViewer: Show reports in Print Layout with Page Width zoomMode

Aqua267 picture Aqua267 · Mar 29, 2013 · Viewed 18.7k times · Source

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

Answer

Saleem Kalro picture Saleem Kalro · Aug 18, 2017

reportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout);