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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP Page - Open Crystal Viewer, in VBScript

Status
Not open for further replies.

iswtvr

Technical User
Nov 19, 2003
1
GB
I'm using dreamweaver MX and Crystal Reports Professional Ver 8.5.0.217.

I want to open a crystal report in the browser to view a report, using the crystal viewer.
I'm having serious problems with this.. There does not appear to be any useful help anywhere!
I've spend days searching thew web trying to find useful info ...

I've loaded Crystal Reports - Pro V8.5 onto the WEB Server.
The below code is partly ok, I think its more the DLL is a problem. My error messages are in the line of
"Invalid ProgID", & It does not see my ActiveX Viewer as being valid??
['Set CRViewer1 = Server.CreateObject("CrystalRuntime.CrystalReportViewer") ] Is this declaration correct ??

Is this a problem with my PC, is this something that I can fix in Dreamweaver or does it need to be the IIS server PC!


Any help would be great.
Thanks,
************************** My Code ************************
<%
Dim CRViewer1
Set CRViewer1 = Server.CreateObject(&quot;CrystalRuntime.CrystalReportViewer&quot;)
Dim WebBroker, WebSource
Set WebBroker = CreateObject(&quot;WebReportBroker.WebReportBroker&quot;)
Set WebSource = CreateObject(&quot;WebReportSource.WebReportSource&quot;)
WebSource.ReportSource = WebBroker
WebSource.URL = &quot;
CRViewer1.ReportSource = WebSource
CRWiewer1.ViewReport
%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top