Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Howto force Report Viewer to be shown in print preview mode

In Visual Studio 2005, how can I show a report in ReportViewer control directly on Print-preview mode?

like image 511
FerranB Avatar asked Feb 16 '09 11:02

FerranB


1 Answers

Use the SetDisplayMode() method:

MyReportViewer.SetDisplayMode(DisplayMode.PrintLayout);
like image 150
lc. Avatar answered Oct 22 '22 12:10

lc.