Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to print to specific printer in Word
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01227339
Message ID:
01227348
Vues:
13
>I need to be able to print to a specific printer.
>
>Using "word.application" I can do it, but i need to use "word.basic"
>
>can anyone help.
>
>
>using oword.createobject("word.application") i can set the active printer
>
>using oword.createobject("word.basic") i cannot

You can reset Windows default printer:

Declare Integer SetDefaultPrinter In WINSPOOL.drv String
If SetDefaultPrinter(cPrintername)<=0
... error
endif

That worked, but how do I determine the default printer so I can set it back
For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life. John 3:16
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform