Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to identify the default printer
Message
De
30/08/1999 11:51:11
 
 
À
30/08/1999 10:53:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00258365
Message ID:
00259205
Vues:
21
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform