Re: C#, Form, ReportViewer => Print questions... by KHV
KHV
Mon Oct 23 16:51:15 CDT 2006
I should have asked in this way:
How can I by code access and modify the Page Setup parameters for the
ReportViewer?
Also, how can I make the Print button, start the default printer to print
the report without the Print dialog popping up first?
I tried the following, but without success:
Microsoft.Reporting.WinForms.ReportPageSettings pgSettings =
reportViewer1.LocalReport.GetDefaultPageSettings();
pgSettings.Margins.Top = 25;
pgSettings.Margins.Bottom = 25;
pgSettings.Margins.Left = 50;
pgSettings.Margins.Right = 25;
Thanks in advance,
Kjartan