TPrintPreview: set custom orientation
Hello all and many thanks to Kambiz for a fine component!
My question ist: how do i ...
Sadly, when showing the form, the result is ALWAYS in poPortrait, no matter what.
Any idea, what i am doing wrong?
TIA and best wishes, WP
My question ist: how do i ...
- Code: Select all
if (today is Monday) then
PrintPreview.Orientation := poPortrait
else
PrintPreview.Orientation := poLandscape;
PrintPreview.BeginDoc;
... do some fancy printing ...
PrintPreview.EndDoc;
Sadly, when showing the form, the result is ALWAYS in poPortrait, no matter what.
Any idea, what i am doing wrong?
TIA and best wishes, WP