
API demos
Here is a list of some demo programs included within JReport Enterprise Server. All these programs are available in <install_root>\help\server\en\samples.
- 1stepdl_demo.zip
An example of using JSP to build URL to run a report set in DHTML format. After extracting the zip to a folder where JSP can be run, for example, <install_root>\public_html, a folder named demo is added, and you can run the demo using the URL http://localhost:8888/demo/main.jsp.
- APIDemoDeployRpt.java
An example of publishing catalogs, report sets, or folders to the server.
- APIDemoPublishRpt.java
An example of publishing a scheduled task.
- APIDemoRemoteFileService.java
An example of using remote report server.
- APIDemoReportEngine.java
An example of using the ReportEngine to run a report set, export/print a report set, and set the where portion.
- APIDemoRunAndExportReport.java
An example of exporting a report set to some formats, and then saving them to local disk.
- APIDemoRunReport.java
An example of running a report set.
- APIDemoRunReportWithTimeout.java
An example of running report sets with timeout.
- APIDemoSendEMail.java
An example of publishing a report set to e-mail.
- CustomizedSendFileAuthorizor.java
Demonstrates implementation of SendFileAuthorizor, which is used to control users' accessibility to certain files in server machine when they access the server via http.
- getRptDescPage2.jsp.zip
A page enabling you to export the report set result to various formats (except for applet).
- printDemo.jsp.zip
These JSP files show how to print reports by using ViewerApplet. For details, see Using JSPs to print report sets.
- PublishToRealDiskPath.java
This sample demonstrates exporting report result to physical disk path when publishing a scheduled task.
- runReport2.jsp.zip
Called by the getRptDescPage2.jsp to run a report set. To run JSP pages, you can put them in the directory <intall_root>\public_html\jinfonet, and then access them from a web browser using the URL http://host:8888/jinfonet/XXX.jsp.
