Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 499
  • Last Modified:

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
0
teaminfinite
Asked:
teaminfinite
1 Solution
 
teaminfiniteAuthor Commented:
Help
0
 
mlmccCommented:
Is this on the a mshine with CR loaded or a client machine?

If it is a client machine you are missing some dlls.

To find the required dlls use
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/depends20.zip.asp


Take a look at

http://support.crystaldecisions.com/library/kbase/articles/c2001738.asp


mlmcc
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now