Problem Printing Straight To printer

Stimulsoft Reports.NET discussion
Post Reply
Ink
Posts: 50
Joined: Sat Jul 02, 2011 2:26 am
Location: UK

Problem Printing Straight To printer

Post 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.
Ink
Posts: 50
Joined: Sat Jul 02, 2011 2:26 am
Location: UK

Problem Printing Straight To printer

Post by Ink »

Scratch that! Found the answer

Report.Print(False)

Don't need the printersetting stuff. Doh! :blush:
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Problem Printing Straight To printer

Post by Andrew »

Excellent! :biggrin:
Post Reply