The information in this article applies to:
SYMPTOMSWhen using the OLE control or WebBrowser control on a form in Microsoft Visual Basic to view a Microsoft Word document, you are unable to type any text into the Word document. CAUSEThis problem occurs if a separate instance of Microsoft Word is running and you switch focus to that instance of Word. When you switch focus back to your Visual Basic form, the Word document in the OLE control or WebBrowser control can no longer be edited. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATIONSteps to Reproduce Behavior
Result: You cannot type text into the document. A workaround for this problem is to activate the Word document in its own Window, rather than using in-place activation. To accomplish this, set the MiscFlags property of the OLE control to vbOLEMiscFlagDisableInPlace, or 2. For example:
Now when you double-click the OLE control, the Word document is activated in its own window inside Microsoft Word. To programmatically activate the Word document in its own window, use the DoVerb method as follows:
REFERENCESIf you are using the WebBrowser control instead of the OLE control, the following Knowledge Base article shows how to configure your system so that the Word document is activated in its own window inside Microsoft Word: Q162059 Office Documents Open in Internet ExplorerFor additional information, please click the article numbers below to view the articles in the Microsoft Knowledge Base: Q191615 BUG: Menu Disabled in Application Activated Using OLE Control Additional query words: schdocvw.dll uneditable locked hang frozen ie frame
Keywords : kbContainer kbInplaceAct kbVBp kbWebBrowser kbWord kbGrpDSO kbDSupport |
Last Reviewed: December 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |