Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the default printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00408792
Message ID:
00408800
Vues:
16
You can use WSH to do this:

WshNetwork=CreateObject("WScript.Network")
WshNetwork.SetDefaultPrinter("\\Server\Print1")

This is straight conversion from VB code but should work.


>Hi all:
>How can I change the default windows printer using a WIN32API?
>SET PRINTER TO NAME "prt-name" doesn´t change permanently.
>
>TIA
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform