
Crystal ActiveX Smart Viewer Question
Jeff,
The PARAM NAME tag is for viewer parameters (e.g. show toolbar) rather report parameters.
To set the report parameters, you either need to include INPUT tags as part of an HTML form that you post to run the report or include them as part of the query string on the URL.
If you'd like to download a copy of ReCrystallize (see below) it will generate web pages that will show you how this works.
--
Michael Dowdie
Developer
ReCrystallize Web Publishing Wizard for Seagate Crystal Reports
http://recrystallize.com
"Need to put your reports on the web by the end of the day? Relax. ReCrystallize."
How do I pass a parameter to a query from the web page?
Do I use the PARAM NAME tag, or do I pass it to the CRViewer
object?
Thanks,
Jeff W-R
<HTML>
<HEAD>
<TITLE>Seagate Crystal Smart Viewer for ActiveX</TITLE>
</HEAD>
<BODY BGCOLOR=C6C6C6 LANGUAGE=VBScript ONLOAD="Page_Initialize">
<OBJECT ID="CRViewer"
CLASSID="CLSID:C4847596-972C-11D0-9567-00A0C9273C2A"
WIDTH=100% HEIGHT=95%
<PARAM NAME="EnableRefreshButton" VALUE=0>
<PARAM NAME="EnableGroupTree" VALUE=0>
<PARAM NAME="DisplayGroupTree" VALUE=0>
<PARAM NAME="EnablePrintButton" VALUE=1>
<PARAM NAME="EnableExportButton" VALUE=1>
<PARAM NAME="EnableDrillDown" VALUE=0>
<PARAM NAME="EnableSearchControl" VALUE=0>
<PARAM NAME="EnableAnimationControl" VALUE=0>
<PARAM NAME="EnableZoomControl" VALUE=1>
<PARAM NAME="req_id" VALUE=1200>
</OBJECT>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Page_Initialize
On Error Resume Next
Dim webBroker
Set webBroker = CreateObject("WebReportBroker.WebReportBroker")
Dim webSource
Set webSource = CreateObject("WebReportSource.WebReportSource")
webSource.ReportSource = webBroker
webSource.URL = Location.Protocol + "file://ldcweb/reports/my.rpt"
CRViewer.ReportSource = webSource
CRViewer.ViewReport
End Sub
-->
</SCRIPT>
</BODY>
</HTML>