Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Printer Programmatically
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows 2000
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01055011
Message ID:
01057811
Views:
41
>Hello Everyone,
>
>Is there a way to set the printer for a report programmatically? I have an application that needs to send the sales receipt to the receipt printer, the price tags to a thermal printer and the regular reports to a regular printer.
>
>Many thanks in advance,
>Bianca

Look at the series of articles that the late Ed Rauh and I did on the Windows Script Host a few years back. They're available on-line at www.vfug.org. What would be of interest is the fourth article on the WScript.Network object. It has a SetDefaultPrinter() method that'll allow you to do this.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform