Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default Printer
Message
From
12/07/2009 16:31:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Default Printer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01411745
Message ID:
01411745
Views:
89
Hi All:

How can I retrieve the default printer so that I can do something like this:
* Print a report
do Printreport
* Print a receipt on the receipt printer
lcOldPrinter = defaultprinter()
set printer to name 'Star TSP643 Raster Printer'
do PrintReceipt
* Restore reguler printer
set printer to name &lcOldPrinter
Thanks,

Yossi
Next
Reply
Map
View

Click here to load this message in the networking platform