Article ID: 241942 - View products that this article applies to.
This article was previously published under Q241942
This article has been archived. It is offered "as is" and will no longer be updated.
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:
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.
Word is currently printing. Quitting Word will cancel all pending print jobs. Do you want to quit Word?
The following sample code shows one way to use this property:
For 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:
(http://support.microsoft.com/kb/170393/EN-US/ )How To Prevent Word Printing Error with OLE Automation
Article ID: 241942 - Last Review: February 21, 2014 - Revision: 2.2
Contact us for more help
Connect with Answer Desk for expert help.