Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Printer Trays programmatically
Message
 
To
31/03/2003 10:44:44
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00771981
Message ID:
00772035
Views:
11
>>>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform