PRB: Opening an Embedded Word 97 Document Creates an Extra Doc

Last reviewed: November 3, 1997
Article ID: Q176061
The information in this article applies to:
  • Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, version 5.0
  • Microsoft Visual Basic Standard, Professional, and Enterprise Editions for Windows, version 4.0
  • Microsoft Word 97 for Windows

SYMPTOMS

When opening an embedded Microsoft Word 97 object in a separate application window, you get an extra blank document. This happens the second and any subsequent times you open the embedded document during your applications session. Trying to close the dummy document after closing the embedded document will cause the following error:

On Windows NT:

   File: Winword.exe - Application Error

On Windows 95:

   This Program has preformed an illegal operation

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Microsoft Word will display a blank dummy document the second and any subsequent times you open an embedded Word 97 document stored in an OLE control.

Steps to Reproduce Behavior

  1. Create a new Standard EXE project. Form1 is created by default.

  2. Add an OLE control to Form1.

  3. From the Insert Object dialog box, choose Create New. From the Object Type list, select Microsoft Word Document.

  4. Enter some text in the embedded Word Document.

  5. Click elsewhere on the form to deselect the OLE control.

  6. Press the F5 key to run the project.

  7. Right-click on the OLE control and choose OPEN.

    NOTE: This can also be done in code by issuing a DoVerb -2 on the OLE control. For example: OLE1.DoVerb –2.

  8. After Word starts, select Close & Return to Unnamed from the File Menu.

  9. Repeat steps 7 and 8. You will now see a blank Document1.

  10. Close the Document1 window in Word and note that you receive one of the errors described at the beginning of this article.


Additional query words: word97 word 8.0
Keywords : VB4WIN vb5all VBKBObj VBKBVBA kberrmsg
Technology : kbole
Version : WINDOWS:4.0,5.0,97
Platform : WINDOWS
Issue type : kbprb
Solution Type : kbpending


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 3, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.