Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the best way to set the Default Printer
Message
De
26/01/2004 08:11:02
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
What is the best way to set the Default Printer
Divers
Thread ID:
00870520
Message ID:
00870520
Vues:
104
Hi,

Doing a search in messages area I saw both methods (shown below) for doing that. There is one that works better, or is recommended?

Assuming:
cPrinterName = "PDF995"
Method 1:
Declare Integer SetDefaultPrinter In WINSPOOL.DRV String @pPrinterName

SetDefaultPrinter (@cPrinterName)
Method 2:
oSetDefPrinter = CreateObject("WScript.Network")

oSetDefPrinter.SetDefaultPrinter(cPrinterName)

Release oSetDefPrinter
TIA,

Fernando
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform