Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to identify the default printer
Message
From
30/08/1999 11:51:11
 
 
To
30/08/1999 10:53:58
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00258365
Message ID:
00259205
Views:
20
>It works fine. but now I have another question:
>If I used sys(1037) or getprinter() to change to another printer, how do I identify the new selected printer?
>
>Thanks
>
>>SET("PRINTER", 2) give you Windows default printer.
>>
>>HTH
>>
>>>Is there any way to know what´s the Windows default printer?
>>>APrinters() does not indicates wich of the installed printer is the default.

In VFP6, SET('PRINTER',3); I don't know of an equivalent under VFP5, so you'd need to track this in your application (doable with GETPRINTER(), since it returns a string name of the printer or a null string if cancelled, not with SYS(1037), which always returns a null string.)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform