Page 1 of 1

Problem Printing Straight To printer

Posted: Wed Sep 14, 2011 7:14 am
by Ink
Hi,

I have a need to print directly to the default printer without being prompted for printer select, number of copies etc
I am using the follwoing code from the Stimulsoft FAQ, but I am still being presented with the Printer Dialog box.

Dim Report As StiReport = New StiReport()
Report.Load("report.mrt")
Report.Render()
Dim PrinterSettings As PrinterSettings = New PrinterSettings()
PrinterSettings.Copies = 2
Report.Print(PrinterSettings)

Can you tell me if thewre is somethig else I need to do?

Thanks,

JOn.

Problem Printing Straight To printer

Posted: Wed Sep 14, 2011 7:24 am
by Ink
Scratch that! Found the answer

Report.Print(False)

Don't need the printersetting stuff. Doh! :blush:

Problem Printing Straight To printer

Posted: Wed Sep 14, 2011 10:21 pm
by Andrew
Excellent! :biggrin: