Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating exe files in vfp 6.0
Message
 
À
11/03/1999 09:44:33
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00193844
Message ID:
00196354
Vues:
50
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform