how to Print a document on two printers automatically

Please discuss general Delphi programming topics here.

how to Print a document on two printers automatically

Postby Sezar » October 26th, 2008, 9:28 am

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?
Sezar
Sezar
Junior Member
Junior Member
 
Posts: 42
Joined: April 18th, 2007, 4:40 pm
Location: Mashhad,Iran

Postby Kambiz » October 26th, 2008, 5:14 pm

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.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2421
Joined: March 7th, 2003, 7:10 pm


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron