>Could anyone tell me the property in Word that tells the status of a print job spooling. My program in VFP6.0 instantiates a COMM object for Word.application and performs a wordmerge. The problem is in the following code:
> oWord.documents.open("c:\mymrge.doc")
> oWord.ActiveDocument.MailMerge.Execute
> oWord.Quit(0)
>The quit command is executed before the merge document has completed spooling to the printer, thus causing an error. I need to be able to check some sort of "print property" to tell if the document has finished spooling to the printer, before executing the Quit method.
You can turn background printing off in word to cause the Print method to become Synchronous (not return until finished)
oWord.options.PrintBackGround = .F.
Erik Moore
Clientelligence