WD97: Some OLE Automation Commands Fail with Visual Fox Pro 5.x

Last reviewed: August 15, 1997
Article ID: Q169547
The information in this article applies to:
  • Microsoft Word 97 for Windows
  • Microsoft Visual FoxPro for Windows, versions 5.0, 5.0a

SYMPTOMS

When you attempt to call Word 97 Visual Basic for Applications methods from Microsoft Visual Fox Pro version 5.x, you may receive the following error:

   OLE error code 0x800200005. Type Mismatch.

RESOLUTION

To correct this problem, install Microsoft Word 97 Service Release 1 (SR- 1).

To work around this problem, use the Microsoft Word Visual Basic for Applications WordBasic object to call the required methods as in the following example:

   WordObj.WordBasic.FileSaveAs "C:\MyDoc.Doc"

STATUS

Microsoft has confirmed this to be a problem in Microsoft Word 97 for Windows. This problem was corrected in Microsoft Word 97 SR-1.

For additional information about SR-1, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q172475
   TITLE     : OFF97: How to Obtain and Install MS Office 97 SR-1

MORE INFORMATION

There are a number of Word 97 Visual Basic for Applications automation calls (the SaveAs method, for example) that fail when invoked from Microsoft Visual Fox Pro version 5.x. Attempting to invoke these methods returns "Type Mismatch" errors.


Additional query words: SR1 release1 8.0 8.00 vb vbe vba
Keywords : FxinteropWinword VBKBAutomation word8 kbcode kberrmsg kbole kbprg
Version : WINDOWS:5.0,5.0a,97
Platform : WINDOWS
Issue type : kbbug
Solution Type : kbfix kbworkaround


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: August 15, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.