Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing RAS with SDK

Status
Not open for further replies.

penkehenke

Programmer
Jun 21, 2004
15
SE
Hello!

Crystal Advanced Developer v.10
Web application: ASP
Web Server: IIS5

I'm working on a solution where SDK is installed on
the webserver and RAS on another server.

My web application returns an error when I'm trying to open
the report. (clientDoc.Open)
Error message:
clientdoc.dll (0x80040154)
Class not registered

If I install RAS directly on the webserver it works alright.
Why does it not work with the SDK?



The code I use is the following:
Dim ClientDoc, ObjFactory, RptAppSession
Set ObjFactory = CreateObject("CrystalReports10.ObjectFactory.1")
Set RptAppSession = ObjFactory.CreateObject("CrystalReports.ReportAppSession")
RptAppSession.Initialize
Set ClientDoc = RptAppSession.CreateService("CrystalReports.ReportClientDocument")
clientDoc.Open Session("reportname")

Hope somebody can help me on this...
 
Not sure if this applies to version 10, but this is the relevant statement from Version 9's documentation. It would appear from your code that your reports are residing on your webserver since you don't have a path specified to the "reportname". You may need to preface your report location with "rassdk://":

"When saving and opening a report, you must specify the path of the document. You enter the path as c:\directory\reportname.rpt (which is equivalent to using the ras://c:\ prefix). You can also use the form rassdk://c:\directory\reportname.rpt with the rassdk:// prefix; however, this method is not recommended because the document is opened and saved on the local machine and then sent serially to the RAS server (even if the RAS server and the SDK are on the same machine). Without the rassdk:// prefix in the path, the document is opened and saved directly on the RAS server. Thus, c:\abc.rpt refers to c:\ on the RAS server, while rassdk://c:\abc.rpt refers to c:\ on the SDK machine.
 
Found a solution at Crystals homepage.
There are missing two dll's, saxserialize.dll and
xerces-c_2_1_0.dll.

SDK installation doesn't include them so you have
to put them there yourself and register the sax...dll in
the registry.

Thanks anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top