C#, Form, ReportViewer => Print questions...

  • Thread starter Thread starter KHV
  • Start date Start date
K

KHV

a) with and b) without the Print dialog showing: How can I interupt the
process after a click from the ReportView Print button, access the default
printer settings, change the page orientation to landscape, set the page
margins and print the report?

Thanks in advance,

Kjartan
 
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
 
Back
Top