Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Select Printer with Word Automation
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00573413
Message ID:
00573480
Views:
28
>You can change the active printer as follows;
>
>oWordApp.ActivePrinter = getprinter() && or you could use the Common Dialog control to return a selected printer.
>
>The ActivePrinter is a property of the Application object not the document object.
>
>Hope this helps.


Thanks, this will help.

I need to set oWordApp.ActivePrinter from data in a table. I'm assuming that I can just store the value returned by getprinter(), for instance "HP LaserJet 9000 PCL 6", and then pass this value at run time. This should work, right?

Peter
Peter Robinson ** Rodes Design ** Virginia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform