Creating reports with JasperReports

Creating reports with JasperReports#

JasperReports reports are based on data sources and report templates. The data source determines the set of items that you then receive in a report. The report template defines the layout and the visual appearance of the item data.

Report templates take a list of items and format them in the way defined in the template. Most of the templates provided create PDF documents. There are examples of reports with and without change history, grouping, localization and even charts.

To display a result set with one of the templates on the server, proceed as follows:

  • Create a result set using a filter. You can use any predefined filter.

  • You see the item overview. Click the “Export” icon in the toolbar.

  • You see a list of the available report templates. When you hover over the report name, you see a preview of what the report will look like.

  • Click the “Run” icon in the “Action” column of the report template you want to use. A new window opens with your set of items formatted according to the report template.

If you go directly to the list of templates (Reports …) and click the “Run” icon, the last set of items shown in the item overview is used for the report. So if you want to try out several report templates, you do not have to run the query over and over again.