Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting default tprinter
Message
De
02/10/2000 10:58:36
 
 
À
02/10/2000 10:46:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00423419
Message ID:
00423434
Vues:
7
>How can I set the Windows default printer from within Visual Foxpro.

Use the Wscript.Network SetDefaultPrinter method; see my sig block for references on the WSH, and the series of articles that George Tasker and I are writing for VFUG (www.vfug.org)

>How can I retrieve the name of the current windows default printer from within Visual Foxpro.

In VFP6, SET('PRINTER',2) is the Windows default printer, and SET('PRINTER',3) the VFP default. SET('PRINTER',2) works in earlier versions as well.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform