In the process of designing a report, you can preview the report at any time in the following two ways:
Notes:
To preview a report in JReport Format when designing it at any time, just click the View tab, which then causes the JReport Engine to run the report. The result is then shown in the viewer. To optimize performance, JReport Designer displays report pages before they have been completely generated. For details about the options in the View tab, see section Design/View area. In addition, when previewing a report, you are enabled to dynamically sort the report records and drill down the aggregate level fields.
You can sort the records in the report dynamically in the View area. To do this:
You can drill down on aggregate level fields in your report. Drill-down is made possible where there is a summary for a group. For example, if a report has been grouped by Customer Region, and the group summary is on Annual Sales. When viewing the report, if you point the mouse at the total annual sales for a region, it will turn into a small hand. Click on the total, and the drill-down report for the selected region will be displayed. See illustration.
By default, in cases like the above, JReport's convention is to hide the detail section of each group and only show it in a drill-down report. To do this, select the detail section, and go to the Report Inspector. Set its Invisible property to true. Then view the report again, and it will be shown without details. See illustration.
Note: After some modifications in the design area, if you find the report is shown very quickly and the changes are not applied in view mode, this means you need to click the Refresh Data button
on the toolbar to re-run your report.
JReport also allows you to preview your report in the following formats: DHTML, HTML, PDF, Excel, Text, RTF, XML and PostScript.
To preview a report in other formats, take one of the following:
on the Standard toolbar and select the required item from the drop-down list.By selecting one of the formats, the report will be exported to a temporary file, which can be viewed in the format with appropriate application. The temporary file will be removed when you exit JReport Designer.
Notes:
-Djreport.url.encoding=UTF-8 in the startup batch file and this setting covers URL encoding/decoding. Therefore, when you preview a report in DHTML format, if the name of the report or its report set or catalog file contains non-Latin characters, you need add -Djreport.url.encoding=UTF-8 into the startup batch file of JReport Designer as well; otherwise the preview will fail.<install_root>\server\bin.<install_root>\server\lib directory, modify the udo.ini file in <install_root>\server\lib and append the classes to the class path of JREntServer.bat in <install_root>\server\bin. For details, see Creating a UDO manually.<install_root>\server\bin.