Select the product you need help with
BUG: Automation client receives an error message or crashes when the client calls the Find object in WordArticle ID: 292744 - View products that this article applies to. This article was previously published under Q292744 On This PageSYMPTOMS When you use an out-of-process client application that uses
early binding to Automate Microsoft Word 97 or later versions of Word, the application may crash with an
access violation or you may receive one of the following error
messages: From Microsoft Visual Basic: Run-time error '-2147023113
(800706f7)': The method '~' of object '~' failed Run-time error '-2147023113 (800706f7)': Method 'Execute' of object 'Find' failed Run-time error 430: Class does not support automation or does not support expected interface. HRESULT = 0x800706F7 RPC_X_BAD_STUB_DATA - The stub received bad data. The problem occurs consistently on some computers, but may never occur on others. Installing a new application or a Microsoft Excel service pack can cause a computer that was working previously to experience the problem. CAUSE Several globally unique identifiers (GUIDs) that are used
by Word for its interface identifiers were used by Excel 5.0 for an
older object model that is now obsolete. When the Excel 5.0 type library is reregistered on a system, the interface GUIDs in the registry that should point to the Word type library point to the Excel 5.0 library, and COM can mistakenly construct the wrong proxy v-table for an out-of-process client using early binding to Word. Calls that are made to this proxy return errors or crash because the proxy is configured for a dispinterface for Excel instead of for a dispinterface for the expected Word interface. The following GUIDs are duplicated in the Excel 5.0 type library and the Word 8.0, 8.1, 10.0 and 11.0 type libraries. Collapse this table
RESOLUTION To resolve this problem, use one of the following methods.
For customers who use client applications that cannot be recompiled to use late binding, you can reregister the Word type library to resolve the problem in most cases. Because the problem returns if the Excel 5.0 library is reregistered again, this method is not an ideal resolution. However, the chances of the Excel 5.0 library being reregistered are low. Therefore, this method should work for most users. To reregister the Word type library, find the appropriate type library for the version of Word that is installed on the system. Collapse this table
Regtlib.exe is included in the Windows Libraries Update. For more information about the Libraries Update, click the following article number to view the article in the Microsoft Knowledge Base: 197298
(http://support.microsoft.com/kb/197298/
)
Microsoft Libraries Update: what, where, why
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. MORE INFORMATION The Excel 5.0 type library (Xl5en32.olb) is provided for
backward compatibility, and is used by clients that were written before Excel
97. The type libraries for Excel 97 and later do not conflict with the Word
type library. The Excel 5.0 library is not normally registered. Therefore, most clients
do not encounter this problem. Clients that encounter this issue have probably
installed a specific product that uses the library and has registered it after
Office setup. Steps to reproduce the problem
PropertiesArticle ID: 292744 - Last Review: May 14, 2007 - Revision: 7.2 APPLIES TO
| Article Translations
|


Back to the top








