Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default Windows Printer
Message
De
21/07/2000 10:19:38
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00395364
Message ID:
00395403
Vues:
16
Thank you, Nigel.
Thats works fine
Denis

>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform