DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   Favorites   Watched Topics     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Change TPrintPreview orientation

 
   Reply to topic       DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
castrora
Member


Joined: 25 Feb 2005
Posts: 2

PostPosted: 25/02/05 04:17    Post subject: Change TPrintPreview orientation Reply with quote

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!
Back to top
View user's profile
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 513
Location: Tehran, Iran

PostPosted: 25/02/05 09:31    Post subject: Reply with quote

Hi,

Include Printers in the uses clause of your unit.

Cheers,
Kambiz
Back to top
View user's profile Send e-mail Visit poster's website
castrora
Member


Joined: 25 Feb 2005
Posts: 2

PostPosted: 25/02/05 14:11    Post subject: Reply with quote

It worked.

Thanks, Thanks.
Back to top
View user's profile
Display posts from previous:   
   Reply to topic       DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Page 1 of 1

Add to favorites

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group