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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only