i-net Crystal-Clear

Usage of i‑net Crystal-Clear

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.

Call a report from a client

There are several ways to request a report from i‑net Crystal-Clear. You can:

  • enter the request directly in the address field of your browser,
  • put the request as a link in an HTML page,
  • call a report from an applet
  • use an HTML form to call a report

The following links show the call of a report in general:

i‑net Crystal-Clear as server application:

  • http[s]:<servername>:<port>/?parameters i‑net Crystal-Clear as servlet: * http[s]:<servername>:<port>/<servletcontext>/?parameters

More information on how to set the parameters of the URL you can find at: i-net Crystal-Clear URL parameters.

Use an HTML form to call a report from i‑net Crystal-Clear

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>

Examples

In the following a number of examples are presented. The parameters employed in these examples are:

  • Host name of the server where i‑net Crystal-Clear (application or servlet) is installed: CrystalClearServer
  • Port on which the i‑net Crystal-Clear application listens: 9000 (default)

Call a report that is located in a local directory on the i‑net Crystal-Clear server

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.

i‑net Crystal-Clear as an application:

http://CrystalClearServer:9000/?report=file:C:/Reports/testReport1.rpt

i‑net Crystal-Clear as a servlet:

http://CrystalClearServer:8080/crystal/?report=file:C:/Reports/testReport1.rpt

Call a report that is located in a virtual directory

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.

i‑net Crystal-Clear as an application:

http://CrystalClearServer:9000/?report=http://webSrv/Reports/testReport1.rpt

i‑net Crystal-Clear as a servlet:

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:

  • The web server where the reports are located is the same as the web server where the servlet engine is installed or
  • the web server where the reports are located is on the same machine as the application i‑net Crystal-Clear.

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.

 

© Copyright 1996 - 2010, i-net software; All Rights Reserved.