BUG: Word 2000 Does Not Quit After Saving Hidden Document Using Automation (266078)
The information in this article applies to:
- Microsoft Word 2000, Service Release 1
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q266078 SYMPTOMS
When you are automating Microsoft Word 2000, the Quit method does not successfully shut down Word. Word is left in the task list even after your Automation client has called the Quit method. To quit Word, you must manually shut down the application by using the Windows Task Manager.
CAUSE
This problem occurs when:
- The Automation client code is running in Debug mode (stepping through the code),
-and- - you call the Add or Open method of the Documents collection and specify False for the Visible argument to open a hidden document,
-and- - the hidden document is saved.
RESOLUTION
You can avoid this problem by using one of the following workarounds:
- Programmatically open and close a blank document after saving the hidden document.
-or- - Open a blank document before calling the Quit method to quit Word.
-or- - Make the hidden document visible before calling the Quit method (requires Microsoft Word 2000 SR1 or SR1a).
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
This problem was corrected in Microsoft Word 2002.
Modification Type: | Major | Last Reviewed: | 11/4/2002 |
---|
Keywords: | kbAutomation kbbug kbDSupport kbProgramming KB266078 kbAudDeveloper |
---|
|