You have been asked to run EmployeeInformation.cls from the Sales Order application and allow the user to choose the format of the report. The allowable formats are: PDF, Excel, RTF (Microsoft Word), HTML, Text, PostScript, and XML.
In this lesson you again use Page Report Studio API to run the report; however, we will use the One Step Export feature to export the page report in the specified format without displaying it in a separate web browser window.
The JSP page that runs the report is provided as part of the lesson. Follow these steps to review the JSP code:
<install_root>\help\samples\JSPSamples\JinfonetGourmetJavaDemo to <install_root>\public_html\jag.
|
Note: The result types are: 0- HTML, 2 - PDF, 3 - Postscript, 4 - RTF, 5 - TEXT, 6 - Excel, 7 - XML.
The report displays according to the format provided. For downloaded result, use the program on your system to view the results, such as Acrobat Reader or Microsoft Word.
In this lesson you have learned how to use JSP and Page Report Studio API to run a report and export the current report tab in this report to any format.