Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Printer Trays programmatically
Message
 
À
31/03/2003 10:44:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00771981
Message ID:
00772035
Vues:
10
>>>>I believe that you could make changes in the report frx file programmatically while running the application: you need to Set DEFAULTSOURCE in EXPR field as needed.
>>>
>>>I'm printing from the WebBrowser control.
>>>
>>>Kev
>>>
>>Then probably you could use keyboard() command to invoke page setup dialog and set properties programmatically. For my current default printer HP LaserJet 2000 I can do it with:
>>
>>keyboard("{ALT-F}u{TAB}{TAB}{TAB}{DNARROW}{DNARROW}{ENTER}")
>
>Hmmmm, the user will need to specify the tray that has the headed paper, I think I'll leave it, there's no easy work-around for this.
>
>Thanks
>Kev


No, user will not need to do anything. Command above do it programmatucally whithout user intervention. But if user need to do it himself, then issue the command above without ENTER to open the dialog and make preliminary settings.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform