Some OLE automation commands fail with Visual FoxPro (169547)
The information in this article applies to:
- Microsoft Word 97 for Windows
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q169547 SYMPTOMS
When you attempt to call Word 97 Visual Basic for Applications methods
from
Microsoft Visual FoxPro, you may receive the following error message:
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:
172475 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 FoxPro versions 5.x and 6. Attempting to invoke these methods
returns "Type Mismatch" errors.
Modification Type: | Major | Last Reviewed: | 6/23/2004 |
---|
Keywords: | kbbug kbdtacode kberrmsg kbfix kbProgramming KB169547 |
---|
|