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

How to display a Crystal Report object in a web page?

Status
Not open for further replies.

TheBugSlayer

Programmer
Sep 22, 2002
887
US
All,
I am designing some reports with Crystal Report 8.0.1.0 which I need to publish on the web. Can anyone tell me how to view a Crystal Report object in a web page using ASP/HTML?

Thanks in advance.

PS: By the way, it had been such a long time from I last used CR that I learnt yesterday only that the product no longer belongs to Seagate but Crystal Decisions, and that's what tehy call version 9 now...
 
try the crystal report forum

Bastien

cat, the other other white meat
 
You can use the CRViewer object, like this...

<OBJECT ALIGN = Center ID=&quot;CRViewer&quot; WIDTH=100% HEIGHT=100%
CLASSID = &quot;CLSID:C4847596-972C-11D0-9567-00A0C9273C2A&quot;
CODEBASE=&quot;<PARAM NAME=&quot;Report Name&quot; VALUE=&quot;rptserver.asp&quot;>
<PARAM NAME=&quot;Show Group Tree&quot; Value=0>
<PARAM NAME=&quot;Show Toolbar&quot; VALUE=1>
<PARAM NAME=&quot;Has Group Tree&quot; VALUE=0>
<PARAM NAME=&quot;Has Navigation Control&quot; VALUE=1>
<PARAM NAME=&quot;Has Stop Button&quot; VALUE=1>
<PARAM NAME=&quot;Has Print Button&quot; VALUE=1>
<PARAM NAME=&quot;Has Zoom Control&quot; VALUE=1>
<PARAM NAME=&quot;Has Close Button&quot; VALUE=0>
<PARAM NAME=&quot;Has Progress Control&quot; VALUE=1>
<PARAM NAME=&quot;Has Search Button&quot; VALUE=1>
<PARAM NAME=&quot;Has Refresh Button&quot; VALUE=1>
<PARAM NAME=&quot;Can Drill Down&quot; VALUE=1>
<PARAM NAME=&quot;Has Animation Control&quot; VALUE=1>
</OBJECT>

Hope that helps.

:)
 
First you need Crystal Enterprise installed on your server. It usually comes with Crystal Reports. You must also register some dll files (craxdrt.dll) on the server for file to run on the web server.

Add the report to the web folder and then call the report in the page.

Response.Redirect (&quot;report.rpt&quot;) or
<a href=&quot;/report.rpt&quot;>report</a>

Hope this helps.

Sandy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top