DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   Watched TopicsWatched Topics     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to Print a document on two printers automatically

 
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> Delphi Programming
View previous topic :: View next topic  
Author Message
Sezar
Junior Member
Junior Member


Joined: 18 Apr 2007
Posts: 28
Location: Mashhad,Iran

PostPosted: 26/10/08 09:28    Post subject: how to Print a document on two printers automatically Reply with quote

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
Back to top
View user's profile Send private message
Kambiz
Administrator
Administrator


Joined: 07 Mar 2003
Posts: 1585
Location: Tehran, Iran

PostPosted: 26/10/08 17:14    Post subject: Reply with quote

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

Donate a cup of food for free: Click to Give @ The Hunger Site
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> Delphi Programming All times are GMT - 12 Hours
Page 1 of 1

Add to favorites

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group