Previewing a report

In the process of designing a report, you can preview the report at any time in the following two ways:

Notes:

Previewing a report in JReport format

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.

Dynamic sort

You can sort the records in the report dynamically in the View area. To do this:

  1. Point to the field you want to sort.
  2. Right-click the field and select the option Sort Ascending or Sort Descending from the shortcut menu.

Drill-down

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.

Previewing a report in other formats

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:

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: