Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Merge - Locating Print Spooling Status
Message
From
28/06/1999 16:48:37
 
 
To
28/06/1999 16:09:25
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00234935
Message ID:
00234961
Views:
29
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform