Hello,
I'm working on a project where I need to pass a parameter to and open a custom crystal report. I have done a lot of searching, and understand that it is possible, but I can't even open crystal let alone pass parameters. I keep receiving the following error:
OLE Error Number: 429
Description: ActiveX component can't create object: 'CrystalRuntime.Application'
Language: VBScript
I have tried several different methods of opening crystal, here are a few but I get the same error regardless:
Ex:1
Set FSO = CreateObject("Scripting.FileSystemObject")
Set Appn = CreateObject("CrystalRuntime.Application")
Set Report = Appn.OpenReport(ReportName)
Ex:2
Dim oApp, oRpt
vFilenameReport = UCase("C:\Path\ToReport\myreport.rpt")
vFilenameExport = UCase("C:\Path\ToDestination\myreport.xls")
Set oApp =CreateObject("CrystalRuntime.Application")
Set oRpt = oApp.OpenReport(vFilenameReport, 1)
If anyone has any knowledge as to what I'm doing wrong I would greatly appreciate it.
Thanks!