Autor Beitrag
cartridge
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 209

Win XP
D4 Prof,D6 Prof
BeitragVerfasst: Fr 07.01.05 22:58 
Hallo!

Bin gerade über Quick Report gestolpert, in dem Sinne, dass ich die Seitenorientierung in der Preview vorgeben wollte.
In der OH stehen die selben Werte, wie in Printers:
poPortrait und poLandscape.
Aber der Compiler sagt, er kenne sie nicht. Habt ihr das auch schon gehabt?
Wer weiß eine Lösung?

ausblenden Delphi-Quelltext
1:
2:
if (QuickRep1.Width > QRPreview1.QRPrinter.PaperWidthValue) and (QRPreview1.QRPrinter.Orientation = poPortrait) then
    QRPreview1.QRPrinter.Orientation:= poLandscape;


Gruß
Ingo
MrSpock
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 262



BeitragVerfasst: Fr 07.01.05 23:45 
Hallo cartridge,

du musst die unit Printers einbinden. Die definiert poLandscape.

ausblenden Delphi-Quelltext
1:
uses Printers;					

_________________
Live long and prosper
MrSpock \\//
cartridge Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 209

Win XP
D4 Prof,D6 Prof
BeitragVerfasst: Sa 08.01.05 19:40 
Danke!

Manchmal bin ich eben nur blöd! :oops:

Gruß
Ingo :roll: