Autor Beitrag
Crowbar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 180

WinXP, SP2
D6 Enterprise
BeitragVerfasst: Sa 18.11.06 16:35 
Hallo,
bevor mein eigentlicher Ausdruck erfolgt, kann über die Komponente "PrinterSetupDialog" ausgewählt werden, ob z. B. im Quer- oder Hochformat gedruckt werden soll.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
...
if PrinterSetupDialog.Execute then
 begin
   Printer.Orientation:=???;
   ...
 end;
...

Wie erhalte ich das Ergebnis, welche Optionen der User im PrinterSetupDialog ausgewählt hat?

Gruß
Crowbar
Raffo
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 300



BeitragVerfasst: Sa 18.11.06 19:38 
Sollte es nicht ganz einfach sein, wenn man nach dem Dialog abfragt:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
if Printer.Orientation=poPotrait then
   begin
   ...
   end;

(hab gerade nur die Syntax getestet, obs denn funzt schreib hier hin)
Crowbar Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 180

WinXP, SP2
D6 Enterprise
BeitragVerfasst: Sa 18.11.06 20:15 
Hi Raffo,
manchmal ist es zu einfach! :wink:
Ja, mit Deinem Code klappt es !

Vielen Dank!

Tschüss
Crowbar