Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the Computers Default Printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00719936
Message ID:
00719996
Vues:
11
You can use VFP SET() function for that.
ThisForm.PrinterName = SET("printer", 2)
>oNet = CREATEOBJECT("WScript.Network")
>oNet.SetDefaultPrinter("\\Server\Print1"
>
>That's perfect. You don't happen to have the other half of the answer:
>
>I tried:
>
>ThisForm.PrinterName = oNet.GetDefaultPrinter()
>
>and it failed.
>
>TIA
>
>DJ
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform