Hi,
I am printing a Word Document from VFP 7 using these simple commands
loWord=CreateObject("Word.Application")
If Vartype(loWord)="O"
loDoc=loWord.Documents.Open(tcWordDocFile)
loDoc.PrintOut(.T.)
loDoc.Close()
loWord.Quit && << problem command here >>>
Endif
The problem is when I issue the quit command, Word will come up saying 'Quitting Word will cancel all your pending print jobs. Do you want to quit now?' I tried to give a timeout before the quit, but as the time would vary depending on the size of the document, it is not reliable.
Is there any property that I can check for that indicates the Word is still printing? Please Help...
TIA
Solutions: when you want it, as you want it!