BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Storing and Loading TPrinterSetupDialog selection

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Thomas J.
Junior Member


Joined: 17 Mar 2006
Posts: 15

PostPosted: Mon Jan 14, 2008 7:34 am    Post subject: Storing and Loading TPrinterSetupDialog selection Reply with quote



Hello all,

I need to store the printer configuration for several forms in my app.
So
form1 needs printer 1 with config x and 4 copies
form2 needs printer 2 with config y and 2 copies
form3 needs printer 1 with config z and 1 copies

I have to store, restore and to set the configuration.

Who can I do so?

Something like

// Configuration
TPrinterSetupDialog->GetConfig(config);
// write to database in a blob
WritePrinterConfig(form, config);

// Restoring and setting
LoadPrinterConfig(form, config);
TPrinter->SetConfig(config);
PrintDocument();

Thanks for your help
_________________
C++ Builder 6, DevExpress, MyDac, TsiLang, MySQL
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.