Page 1 of 1

Printer dialog settings behavior: some settings are not retained

Posted: Mon Sep 17, 2007 6:00 pm
by Fabio Pagano
In code i make appear a PrintDialog then i pass its "PrinterSettings" to the report "Print" method asking it to show another print dialog:

Code: Select all

Dim pd As New System.Windows.Forms.PrintDialog
pd.ShowDialog()
Report.Print(True, pd.PrinterSettings)
If in the first "Print dialog" i choose a papersource different than default (eg. "Manual feed") then when appears the second "Print dialog" (invoked by the report.print method) the papersource proposed is the default, not the "Manual feed", though i passed the first "Print dialog" printer settings.

Why is this setting (and others too) not retained?

It seems that retained settings are only number of copies and few others.

Thanks.

Printer dialog settings behavior: some settings are not retained

Posted: Tue Sep 18, 2007 3:47 am
by Fabio Pagano
Please ignore the above message.

I wrote that code to see if printersettings were retained if i passed the printersettings taken from my print dialog.

I've tried with a physical printer and all worked fine if i change the "ShowPrintDialog" parameter from True to False (effectively i need to do so because print dialog must appear only once). It was only a test...

Now this is my code and seems ok, the papersource specified in my print dialog is honoured.

Code: Select all

Dim pd As New System.Windows.Forms.PrintDialog
pd.ShowDialog()
Report.Print(FALSE, pd.PrinterSettings)
I'm doing other tests, and i've found something that needs clarification, but i'll open another thread.

Thank you.