 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Daryl Guest
|
Posted: Thu Feb 23, 2006 9:03 pm Post subject: Using TPrinterSetupDialog control |
|
|
Is it possible to set values such as paper size and orientation values that
are shown by the PrinterSetupDialog before it is displayed? I am guessing
there may be a Windows API.
Also, Is it possible to get access to the values programmatically so I can
set-up values for printing.
thanks
daryl |
|
| Back to top |
|
 |
george Guest
|
Posted: Sat Feb 25, 2006 11:03 pm Post subject: Re: Using TPrinterSetupDialog control |
|
|
And.....
void __fastcall TForm4::Orient() // just to set text on screen
{if (Printer()->Orientation) sprintf (resp,"Landscape %d",font);
else sprintf (resp,"Portrait %d",font);
Orientation->Text = resp;
}
George
"Daryl" <developeracc (AT) hotmail (DOT) com> wrote:
| Quote: | Is it possible to set values such as paper size and orientation values that
are shown by the PrinterSetupDialog before it is displayed? I am guessing
there may be a Windows API.
Also, Is it possible to get access to the values programmatically so I can
set-up values for printing.
thanks
daryl
|
|
|
| Back to top |
|
 |
george Guest
|
Posted: Sat Feb 25, 2006 11:03 pm Post subject: Re: Using TPrinterSetupDialog control |
|
|
Why do you need an API? What about:-
Printer()->Orientation = poLandscape; ?
George
"Daryl" <developeracc (AT) hotmail (DOT) com> wrote:
| Quote: | Is it possible to set values such as paper size and orientation values that
are shown by the PrinterSetupDialog before it is displayed? I am guessing
there may be a Windows API.
Also, Is it possible to get access to the values programmatically so I can
set-up values for printing.
thanks
daryl
|
|
|
| Back to top |
|
 |
|
|
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
|
|