Page 1 of 1

Print directly a Report.Printer Settings.PrinterName

Posted: Mon Mar 16, 2009 8:36 am
by Milton Guevara
Hello
I have a report that should go directly to the printer without showing print dialog box (Report.Print (False)). The idea is to take the printer name configured in the same report. (Report.Printer Settings.PrinterName). I've completed the configuration does not work ... but always sends the report to the printer implicit. Please your help to solve this issue.

Milton

Print directly a Report.Printer Settings.PrinterName

Posted: Mon Mar 16, 2009 9:22 am
by Brendan
Did you set the 'Show Dialog' property to False?

Print directly a Report.Printer Settings.PrinterName

Posted: Mon Mar 16, 2009 10:16 am
by Milton Guevara
Where to locate the property "ShowDialog"?

Print directly a Report.Printer Settings.PrinterName

Posted: Mon Mar 16, 2009 10:43 am
by Brendan

Code: Select all

Report.PrinterSettings.ShowDialog = false;

Are you printing the report through code or is it when the user presses the print button from the preview window?

Print directly a Report.Printer Settings.PrinterName

Posted: Mon Mar 16, 2009 2:21 pm
by Milton Guevara
I am printing through code. With this change already solved the problem ... Thanks

Milton

Print directly a Report.Printer Settings.PrinterName

Posted: Tue Mar 17, 2009 9:09 am
by Edward
Thank you for this information.