Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Default Printer ?
Message
 
 
À
06/09/2001 22:06:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00553536
Message ID:
00553538
Vues:
16
>I need to set the default windows printer. I tried using the SET PRINTER TO NAME, but it only changes the default VFP printer. Is there a way in native VFP to change the default windows printer? If not, is there a windows api function that I can use to accomplish this?
>
>Thanks,
>Alan

You can do this thru WSH
oNet = CREATEOBJECT("WScript.Network")
oNet.SetDefaultPrinter("\\Server\Print1")
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform