Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to change the Windows default printer ?
Message
De
15/05/2001 02:53:36
 
 
À
15/05/2001 02:29:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00507153
Message ID:
00507155
Vues:
15
>Hello !
>
>I would like to know if it is possible to change the default printer in Windows by programming in VFP 6 ?

From Sergey Berezniker:

You can do this thru WSH
oNet = CREATEOBJECT("WScript.Network")
oNet.SetDefaultPrinter("\\Server\Print1")
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform