Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set any printer as the current Windows printer?
Message
 
To
13/02/1999 04:04:52
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00187351
Message ID:
00187361
Views:
22
>I would like to know how I can set any installed Windows Printer as the current printer for VFP and for Windows, I used Getprinter but did not work. Is very important, I am finishing an application and this one is the last thing to terminate it. Tia
>
>Luis Guerra

Luis,

Take the value returned from GetPrinter and use the SET PRINTER TO command, for example;

LOCAL lcPrinter
lcPrinter = GetPrinter()
IF NOT EMPTY( lcPrinter )
SET PRINTER TO "&lcPrinter"
ELSE
* The suer pressed escape in GetPrinter
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform