Skip to Content
0
Former Member
Jan 24, 2011 at 11:54 AM

Updating ASP+Crystal 9 web site to CrystalReports 2008 Server

135 Views

Hi! It's my first post in the forums. Thanks in advance for the help you may give me.

I'm updating a old ASP web site which opens crystal 9 reports in order to use it in a new server where is installed and running a newer crystal reports server 2008 version. Anyway, Im testing it in a local machine (crystal reports 2008 installed) before uploading it to the server.

the current way to open reports it's based in this code:

-

-


Set objFactory = CreateObject("CrystalReports.ObjectFactory")

Set Session("oClientDoc") = objFactory.CreateObject("CrystalClientDoc.ReportClientDocument")

Session("oClientDoc").Open path & reportName

Set viewer = CreateObject("CrystalReports.CrystalReportViewer")

viewer.ReportSource = Session("oClientDoc").ReportSource

viewer.ProcessHttpRequest Request, Response, Null

-

-


I wrote above the important code in order to give you a idea of the current situation.

So, i moved the web site code (ASP) to my local machine (crystal reports 2008 installed) and in a try of getting it running i got the next error:

-

-


Error de Microsoft VBScript en tiempo de ejecución error '800a01ad'

El componente ActiveX no puede crear el objeto: 'CrystalReports.ObjectFactory'

/wwwicp/es/intranet/uni2/a_dir_comun/estadistica_entregas_crystal_9.asp, línea 19

-

-


ActiveX cannot create the 'CrystalReports.ObjectFactory' object, which is normal due to the installed version of crystalreports, so i modified the code (based on the registry of windows):

-

-


Set objFactory = CreateObject("CrystalReports12.ObjectFactory.1")

-

-


And I got the same error:

-

-


Error de Microsoft VBScript en tiempo de ejecución error '800a01ad'

El componente ActiveX no puede crear el objeto: 'CrystalReports12.ObjectFactory.1'

/wwwicp/es/intranet/uni2/a_dir_comun/estadistica_entregas_crystal_9.asp, línea 20

-

-


Could anyone give me a clue of what's going on and how to fix it?

Edited by: jamesand on Jan 24, 2011 1:02 PM

Edited by: jamesand on Jan 24, 2011 3:16 PM