Skip to Content
0
Former Member
Feb 21, 2011 at 09:49 AM

CreateObject -> ActiveX component can't create object

743 Views

hi

I have installed Crystal Reports 2008 Version 12.0.0.683 and Crystal Reports 2008 Runtime (CRRuntime_12_0_mlb.msi)!

I create a VBS Script test.vbs with the following content:

' Export to PDF with VB-Script:

Dim Application, Report
Set Application = CreateObject("CrystalRuntime.Application.12")
Set Report = Application.OpenReport("C:\Bericht.rpt")

Report.ExportOptions.FormatType = 31 ' crEFTPortableDocFormat
Report.ExportOptions.DestinationType = 1 ' crEDTDiskFile
Report.ExportOptions.PDFExportAllPages = True
Report.ExportOptions.DiskFileName = "C:\Bericht.pdf"
Report.Export (False)

The error message displays:

ActiveX component can't create object: 'CrystalRuntime.Application.12''

Whats wrong with Crystal Reports?