Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE from VFP3 to MS Word 97!
Message
From
14/05/1998 07:35:46
 
 
To
14/05/1998 06:17:01
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00099351
Message ID:
00099362
Views:
24
Hi:

Above the solution for your problem (i.e. bug):


When using OLE automation to interact with Microsoft Word 97 and the Visual
Basic for Applications language, certain commands return the following
error to Visual FoxPro:

OLE error code 0x80020005: Type Mismatch.

This problem is caused by a problem in the way Word 97 returns mismatched
errors from the OLE DISPATCH methods.

There are two ways to solve the error:

1. Use the equivalent Word.Basic methods with the WordBasic property
within the Word.Application object. See the example below.

2. Use only the Word.Basic object.

Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been fixed in Visual Studio
97 Service Pack 2.
Thanks,
Alexander August
Previous
Reply
Map
View

Click here to load this message in the networking platform