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

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
 
K

KHV

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top