Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Default Printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00661824
Message ID:
00661921
Vues:
22
>>Hi, how can I set the Default Windows Printer (SET("Printer", 2) from within VFP?
>
>The easiest way is to use the Windows Script Host Wscript.Network object - it has a SetDefaultPrinter method that changes the Windows Default printer assignment:
>
>
oWSHNet = CREATEOBJ('Wscript.Network')
>oWSHNet.SetDefaultPrinter('SomeWindowsPrinterName')
>
>You can find detailed information on this in VFP in the 5 part article that George Tasker and I did back in the Fall of 2000 for VFUG, available in the back issues section of www.vfug.org, or in many of the links in my sig block below.

It worked fine. Thanks.
José Augusto Cavalcanti
Global Connection
jose.cavalcanti@globalconnection.com.br
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform