Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing with Word
Message
From
21/01/2000 15:38:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Printing with Word
Miscellaneous
Thread ID:
00321120
Message ID:
00321120
Views:
49
Hi!

I am trying to send a document to the printer using the following code:
oAutomation = CREATEOBJECT("Word.Basic")
oAutomation.FileOpen(cFileName)
oAutomation.FilePrint
oAutomation.FileQuit
RELEASE oAutomation
This code works fine, except that when the application hits the oAutomation.FileQuit command, I get a dialog box that says that quitting Word while printing will cancel my print job. On the other hand, if I comment the FileQuit command, WinWord stays in memory (checked using NT's Task Manager).

Is there a way to know when Word has finished or to tell him to quit when he's done?

Thanks!

VFP6, NTW4
Sylvain Demers
Next
Reply
Map
View

Click here to load this message in the networking platform