Overview of a Report Unit

In the server, a report unit is the collection of elements for retrieving data and formatting output. Anatomy of a Report Unit shows these elements:

The data source and query that retrieves data for the report.
The main JRXML that determines the layout and is the core of the report unit.
The main JRXML defines other elements in one of the following ways:
     Creating definitions internally
     Referring to existing elements in the repository using the repo: syntax
The input controls and other resources.

For more information about the report unit, refer to the JasperReports Server Ultimate Guide.

Anatomy of a Report Unit

Adding a Simple Report Unit to the Server

This section presents an example of uploading a JRXML to the server. The report only has two image resources. The example defines a custom query for the report unit.

To add the simple report unit to the server, you need access to the following sample data installed with the server:

<js-install>/samples/reports/AllAccounts.jrxml
<js-install>/samples/images/logo.jpg files
Feedback
randomness