This sample demonstrates how to use a PERL script as a proxy for a local i-net Clear Reports RemoteInterface. It is designed to run on a local apache webserver with PERL extension.
Install a Java VM (Java 5 or higher) if it is not installed.
Install i-net Clear Reports with the setup tool as standalone server to create the file
ClearReports.jar and the file ReportViewer.jar in the “core” directory.
Create a directory called “core” in the document root of your webserver and copy the file
ReportViewer.jar into this directory and create a directory “clearreports” and copy any report (.rpt) file into this directory.
Start i-net Clear Reports with the command:
java -classpath core/ClearReports.jar com.inet.report.RemoteInterface <port#>
Edit the
SampleWin.pl or
SampleLinux.pl and adjust the port# and the host on which the RemoteInterface runs. In some cases, the script execution command in the first line has to be changed as well, if your
PERL is installed in another location.
Note: Make sure to edit and use the Sample*.pl for your operating system!
Copy the Sample*.pl required for your operating system into the cgi-bin directory of your webserver.
The location of the server directories an whether scripts in these directories will be executed depends on the site config of your webserver.
Enter the
URL "http://localhost/cgi-bin/Sample*.pl?report=file:<path-to-your-report>.rpt"
Note: The request
URL may be case sensitive on Linux platforms!
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 clearreports@inetsoftware.de.