How To Prevent Word Printing Error with BackgroundPrintingStatus Property (241942)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q241942 SUMMARY
When using OLE Automation to Microsoft Word 2000 or Microsoft Word 97 for Windows SR-1 or higher that prints a file, and then releases, closes, or quits the Word object, the following warning message might appear:
Word is currently printing. Quitting Word will cancel all pending print jobs. Do you want to quit Word?
The BackgroundPrintingStatus property of the Word.Application object returns the number of jobs in Word's Background Printing queue. By checking the value of this property, you can avoid the error message without disabling Background Printing.
REFERENCESFor additional information, click the article number about suppressing errors in Word below
to view the article about suppressing errors in Word in the Microsoft Knowledge Base:
170393 How To Prevent Word Printing Error with OLE Automation
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbAutomation kbhowto KB241942 |
---|
|