Page 1 of 1

Change TPrintPreview orientation

PostPosted: February 25th, 2005, 4:17 am
by castrora
Hello there!

I'm trying to change the TPrintPreview orientation with the follwing code:

form32.TPrintPreview1.Orientation := poLandscape;

When I compile the program I get the following error:

Undeclared identifier: 'poLandscape'

For sure I'm missing something.... What is wrong?? I'm using D5 and the latest TPrintPreview available on this site (very nice component... just what I was looking for!).

Thanks!

PostPosted: February 25th, 2005, 9:31 am
by Kambiz
Hi,

Include Printers in the uses clause of your unit.

Cheers,
Kambiz

PostPosted: February 25th, 2005, 2:11 pm
by castrora
It worked.

Thanks, Thanks.