Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default Windows Printer
Message
 
À
21/07/2000 10:05:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00395364
Message ID:
00395396
Vues:
16
It's part of Windows Scripting Host. Example:
oWNet=CreateObject("WScript.Network")
oWNet.SetDefaultPrinter("printername")
I've not tried it yet so don't know what you have to use as the printer name.

>Hi Nigel!
>Can you explain a bit more.
>What is it "scripting network object" ?
>Thanks
>
>>You can use Set("Printer", 2) to get the default printer name. Then use the scripting network object to set the default printer name.
>>
>>>In my program me need printing from activeX.
>>>ActiveX control always using default windows printer. But need to move
>>>print job to printer fax port.
>>>SET PRINTER TO [NAME] not works for redirect printer job between printers. Maybe anybody know, how set printer as default and return back.
>>>Thanks.
>>>Denis Gavrikov
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