Page 1 of 1

Setting the tray

Posted: Tue Feb 20, 2007 10:44 am
by EDV Gradl
Hi Team Stimulsoft!

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

Thanks again

Setting the tray

Posted: Wed Feb 21, 2007 1:49 am
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.