Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 6.0 and Word97
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00155685
Message ID:
00155707
Views:
15
I usually put a WAIT WINDOW "Waiting for print job to copmplete..." TIMEOUT 30 after calling the Print() method.

HTH

>For those of you who have done some development with VFP and Word97, I would like to know if you can help with the following:
>
>I generate bills in Word97 from VFP. However, when I try to perform a oWord.ActiveDocument.PrintOut followed by Word.ActiveDocument.Close and oWord.Quit. It appears that the print request has not had time to queue properly. I know that I can always place my program in a wait state and then attempt to close my document and Word, but that is bound to fail since my generated documents can vary in size. Is there any way through OLE automation that I can wait for the print job to queue prior to close/quitting commands to execute in Word?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform