Link to home
Start Free TrialLog in
Avatar of teaminfinite
teaminfinite

asked on

ActiveX component can't create object

I'm trying to open a crystalreport from the sql server but when I try doing that using the crystal report object I get this error message "ActiveX component can't create object"
Here's my code:

Private m_objRepApp As CRAXDRT.Application
Private m_objRep As CRAXDRT.Report

Set m_objRepApp = CreateObject("CrystalRuntime.Application")
Set m_objRep = m_objRepApp.OpenReport(m_strReportPath)
m_objRep.EnableParameterPrompting = False

It gives me this message when this statement is executed
Set m_objRepApp = CreateObject("CrystalRuntime.Application")

Can anyone help me with this problem. Thanks
Avatar of teaminfinite
teaminfinite

ASKER

Help
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial