Print directly a Report.Printer Settings.PrinterName

Stimulsoft Reports.NET discussion
Post Reply
Milton Guevara
Posts: 53
Joined: Thu Aug 21, 2008 9:28 pm
Location: Peru

Print directly a Report.Printer Settings.PrinterName

Post 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
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

Print directly a Report.Printer Settings.PrinterName

Post by Brendan »

Did you set the 'Show Dialog' property to False?
Milton Guevara
Posts: 53
Joined: Thu Aug 21, 2008 9:28 pm
Location: Peru

Print directly a Report.Printer Settings.PrinterName

Post by Milton Guevara »

Where to locate the property "ShowDialog"?
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

Print directly a Report.Printer Settings.PrinterName

Post 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?
Milton Guevara
Posts: 53
Joined: Thu Aug 21, 2008 9:28 pm
Location: Peru

Print directly a Report.Printer Settings.PrinterName

Post by Milton Guevara »

I am printing through code. With this change already solved the problem ... Thanks

Milton
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Print directly a Report.Printer Settings.PrinterName

Post by Edward »

Thank you for this information.
Post Reply