Change TPrintPreview orientation

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

Change TPrintPreview orientation

Postby castrora » February 25th, 2005, 4:17 am

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!
castrora
Member
Member
 
Posts: 2
Joined: February 25th, 2005, 4:10 am

Postby Kambiz » February 25th, 2005, 9:31 am

Hi,

Include Printers in the uses clause of your unit.

Cheers,
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Postby castrora » February 25th, 2005, 2:11 pm

It worked.

Thanks, Thanks.
castrora
Member
Member
 
Posts: 2
Joined: February 25th, 2005, 4:10 am


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest

cron