Article ID 2183 Article Title ERROR: "Unable to instantiate COM object." when running a report Article URL http://www.dataaccess.com/kbasepublic/kbprint.asp?ArticleID=2183 KBase Category Crystal Reports Date Created 10/28/2005 Last Edit Date 02/15/2006
Article Text
PROBLEM:
I am getting the error below when I try to run the Orders Crystal report from the sample installed with my Visual DataFlex 11.1:
"Unable to instantiate COM object. ActiveX component may not be properly
installed or registered. Error code: 0x80040154"
What is that error and how can I correct that?
SOLUTION:
That report uses CDO, and CDO is not installed by default when installing Crystal Reports.
You need to pick "Crystal Data Objects" from the list of Data Access options offered by Crystal when you are installing it -- again, that item is not selected by default.
To add that to your machine:
- Open Add/Remove Programs
- Select Crystal Reports 11 and click on the Change button
- Expand the tree under "Data Access"
- Select "Crystal Data Objects" and click on it
- Select it to be installed -- you will probably need your Crystal Reports CD to proceed with the installation.
That should fix the error with the Orders report and any other using CDO but notice that the same error can be displayed when some other DLL is not installed or registered.
Contributed By:
Marcia Booth
Company: Data Access Worldwide
Web Site: http://www.dataaccess.com
Links Related to this Article
DAW Knowledge Base article 2167: QUESTION: Do we have to use Crystal XI with the RDC available in VDF?
DAW Knowledge Base article 2169: ERROR: Could not connect to the Crystal RDC Application Object
DAW Knowledge Base article 2176: ERROR: "Logon Failed" using Crystal RDC
DAW Knowledge Base article 2178: EXAMPLE: cCrystal Subclass to handle ADO Properties
DAW Knowledge Base article 2186: INFO: Crystal CDO Limit
Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2024 Data Access Corporation. All rights reserved.
The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access 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.