Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating exe files in vfp 6.0
Message
 
To
11/03/1999 09:44:33
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00193844
Message ID:
00196354
Views:
37
Christian / Nancy:

I just figured this one out a couple of weeks ago:

>is there any way you can change from portrait to landscape in your program
>without using "set printer on prompt" and than click, click in the printer >configuration?

What i did was simply stuff the keyboard with the right characters to run the printer dialog and do what i wanted. Here is a little snippet of my code:

IF cPageOrient="Landscape"
KEYBOARD "{TAB}{ENTER}{TAB}{TAB}{TAB}{TAB}L{ENTER}{ENTER}" && landscape
ELSE
KEYBOARD "{TAB}{ENTER}{TAB}{TAB}{TAB}{TAB}P{ENTER}{ENTER}" && portrait
ENDIF
SET DEVICE TO PRINTER PROMPT

i hope this helps,

scott
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform