Setting the tray

Stimulsoft Reports.NET discussion
Post Reply
EDV Gradl
Posts: 228
Joined: Sat Jun 17, 2006 9:50 am
Location: Germany

Setting the tray

Post by EDV Gradl »

Hi Team Stimulsoft!

How I set the paper tray when printing (that way choosing the paper source)?

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

Setting the tray

Post by Edward »

To specify the paper source for the printer please use the following code:

Code: Select all

//Create Printer Settings
PrinterSettings printerSettings = new PrinterSettings();

//Specify paper source
printerSettings.DefaultPageSettings.PaperSource = printerSettings.PaperSources[1];

//Direct Print - Don't Show Print Dialog
report.Print(false, printerSettings);
Thank you.
Post Reply