| View previous topic :: View next topic |
| Author |
Message |
castrora Member
Joined: 25 Feb 2005 Posts: 2
|
Posted: 25/02/05 04:17 Post subject: Change TPrintPreview orientation |
|
|
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 |
|
 |
Kambiz Administrator
Joined: 07 Mar 2003 Posts: 513 Location: Tehran, Iran
|
Posted: 25/02/05 09:31 Post subject: |
|
|
Hi,
Include Printers in the uses clause of your unit.
Cheers,
Kambiz |
|
| Back to top |
|
 |
castrora Member
Joined: 25 Feb 2005 Posts: 2
|
Posted: 25/02/05 14:11 Post subject: |
|
|
It worked.
Thanks, Thanks. |
|
| Back to top |
|
 |
|