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

ID: Q169547

The information in this article applies to:

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          : kberrmsg kbole kbprg kbdtacode
Version           : WINDOWS:5.0,5.0a,97
Platform          : WINDOWS
Issue type        : kbbug
Solution Type     : kbfix

Last Reviewed: December 17, 1998