Thomas J. Junior Member
Joined: 17 Mar 2006 Posts: 15
|
Posted: Mon Jan 14, 2008 7:34 am Post subject: Storing and Loading TPrinterSetupDialog selection |
|
|
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 |
|