See Start i-net Crystal-Clear for further information on how to start i‑net Crystal-Clear as an application. The servlet engine starts the servlet i‑net Crystal-Clear when you request your first report since the web server has been started.
There are several ways to request a report from i‑net Crystal-Clear. You can:
i‑net Crystal-Clear as server application:
More information on how to set the parameters of the URL you can find at: i-net Crystal-Clear URL parameters.
If you would like to use an HTML form on the client then see the following example of an HTML form:
… <body > <center> <font FACE="Arial"> <form name="FormCrystalClear" action="http://<CrystalClearServer>:9000" method="POST"> <input type="text" name="report" value="file:C:/reports/Sample.rpt"> … Enter here more parameters of your report … <input type="button" name="Show Report" value="Submit" onClick="Show()"> </form> <script LANGUAGE="JavaScript"> <!-- function Show() { document.FormCrystalClear.submit(); } //--> </script> </body> …
In the following a number of examples are presented. The parameters employed in these examples are:
The report does not have any parameter fields, group selection formulas etc.. The report file is located in the directory C:\Reports on the server where i‑net Crystal-Clear is installed. The name of the report is testReport1.rpt.
http://CrystalClearServer:9000/?report=file:C:/Reports/testReport1.rpt
http://CrystalClearServer:8080/crystal/?report=file:C:/Reports/testReport1.rpt
The report does not have any parameter fields. The report file is located in the virtual directory Reports on the web server webSrv. The name of the report is testReport1.rpt.
http://CrystalClearServer:9000/?report=http://webSrv/Reports/testReport1.rpt
http://CrystalClearServer/<crystal>/?report=http://webSrv/Reports/testReport1.rpt
You can call a report also with relative path names. Conditions for the use of relative path names are:
More information on how to set the parameters of the URL you can find at: i-net Crystal-Clear URL parameters.
In the following you see the HTML code for the Crystal Report Viewer for Java that requests a report from the i‑net Crystal-Clear servlet:
<APPLET CODE="com.inet.viewer.ViewerApplet" CODEBASE="/client" WIDTH=100% HEIGHT=95%> <PARAM NAME="ReportName" VALUE="http://servername:8080/servlet/com.inet.report.ReportServlet? report=file:C:/ReportsDir/Report.rpt"> <PARAM NAME="Archive" value="../core/CC-Viewer.jar"> <PARAM NAME="HasGroupTree" value="false"> <PARAM NAME="HasExportButton" value="true"> <PARAM NAME="HasRefreshButton" value="true"> <PARAM NAME="HasPrintButton" value="true"> <PARAM NAME="HasLoggingEnabled" value="false"> </APPLET>
If you want to embed the i‑net Crystal-Clear Java Viewer into an HTML page then only include this applet tag in an HTML page. You only need to change the value for the parameter “ReportName” dynamically (e.g. by ASP, JSP or JavaScript) if you want to use other report files.
i‑net software strives to provide accurate product documentation. Please give us your feedback using the form below.
NOTE: This form is for documentation feedback only. For technical assistance, please send an email to crystalclear@inetsoftware.de.