Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printer control in Word from VFP
Message
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00496932
Message ID:
00497060
Views:
12
I don't know if you can just bring up the print dialog and stop right there for the user to choose or not.

You can set the printer for output by doing the following (assuming oWord is a Word.Application object):

oWord.ActivePrinter="HP LaserJet II" &&or whatever

I don't have an answer for the "waiting to quit until printing is done" question. Maybe there's a property of the Word.Application object that contains the current print status or some such. Perhaps someone else will jump in on that one.

--Brad
Previous
Reply
Map
View

Click here to load this message in the networking platform