Using JSPs to Print Page Reports
Logi JReport Server provides the following demo JSPs which enable you to print a page report without any view in the client side, and they are available in
Provides frames to load printCustomerlist.jsp and printReport.jsp.
Shows how to set parameters for printing the demo report CustomerAnalysis.cls by using the ViewerApplet. This JSP calls printReport.jsp. If you want to print the other reports, you can follow this JSP file as an example to write your own JSP. In your own JSP, you should modify the values of "cat" and "rptName".
String cat = "/SampleReports/SampleReports.cat"; //request.getParameter(APIConst.TAG_CATALOG);
String rptName = "/SampleReports/CustomerAnalysis.cls"; //request.getParameter(APIConst.TAG_REPORT);
Shows how to print reports by using the ViewerApplet. The example JSP printCustomerlist.jsp calls this JSP.
Before running the JSPs, copy them to
<intall_root>\public_html\jinfonet. Then, start Logi JReport Server and access printDemo.jsp using the URL
http://localhost:8888/jinfonet/printDemo.jsp. The following page appears:
Specifies to call printReport.jsp and load applet of Page Report Studio Frame.
Specifies to call printReport.jsp without loading applet of Page Report Studio Frame.
Resets the previous options.
Views this report.
If checked, you could specify the print setup in the Print dialog.
If checked, the print job will run in the background.
If checked, you will use instance PrintJob of JDK11 to print the report.
If checked, you have to wait until the print job is finished.
If checked, the large page will be separated into several pages automatically.
This parameter is used with the parameter wait. After the print job is finished, a box will pop up to note you, and you could do any other work instead of keep on waiting.
Specifies the printer to implement the print job.