Page 1 of 1

how to Print a document on two printers automatically

PostPosted: October 26th, 2008, 9:28 am
by Sezar
Hi,I want to print a document on two printers synchronous.

1-how can I change default printer with code?
2-can I change the Paper width/height with code?

PostPosted: October 26th, 2008, 5:14 pm
by Kambiz
1. The Printer object has a PrinterIndex property, which you can use it to change the active printer in your application. The Printers property of this object contains list (TStrings) of available printers.

2. Download Print Preview Component and look for implementation of SetPrinterOptions method.