cancel
Showing results for 
Search instead for 
Did you mean: 

CreateObject -> ActiveX component can't create object

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hello,

There is no ActiveX components in CR 2008. Only .NET components now. The RDC was deprecated in CR 9 and stopped shipping as of CR XI R2 ( 11.5 ).

Thank you

Don

Former Member
0 Kudos

How can i give commands to CR2008 with the help of VisualBasic?

Which createobject can i use to create a vbs/vba-script to control CR2008?

0 Kudos

You can't, It was sort of supported using the RDC and ActiveX viewer, never officially supported in VBA, there is no option in Cr 2008 to use VBA.

For development purposes your Only option is to use Visual Studio 2005 or above and use our CR .NET Assemblies.

Thank you

Don

Former Member
0 Kudos

I am a little bit confused...

I can use .net to give commands to CR2008!

Isn't VB.net a part of the .Net-Framework?

Or in which programming language i have to use?

Edited by: rapt6rr on Feb 21, 2011 4:27 PM

0 Kudos

Yes and No....

You cannot use VBS to run Crystal Reports as you could in earlier versions. You have to write your app in Visuak Studio .NET and use Crystal Reports .NET Assemblies.

See these sample app's for more info:

Root Page

http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsHome

Enterprise Samples (including managed and unmanaged ras)

http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsSDKSampleApplications

Non-Enterprise Samples

http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications

Exporting Samples (RAS)

http://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples#NETRASSDKSamples-Exporting%2FPrinting

Thank you

Don

Answers (0)