Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default Printer
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00482327
Message ID:
00482427
Views:
10
This is not a bad option and have considered it. Have you ever ran into a customer that would not allow wsh on the computers for security reasons? This was my only concern with going this route.

Thanks for the suggestion.

Tommy

>One way is to not use the PROMPT dialog at all; instead, select a printer from the APRINTERS()-returned array, and use the Wscript.Network's SetDefaultPrinter method to assign the printer as the default Windows printer, taking care of the printer assignment without invoking the PROMPT clause for every report - IOW, you can have a separate 'sticky' dialog that assigns the default printer, and then simply print the report without presenting the selection dialog each time, and you can query the current assignment at any moment using SET('PRINTER',2); the WSH method works the same regardless of Windows platform.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform