What is a report?

A report is comprised of a report layout and a dataset. JReport Designer is used to create report templates that JReport Server combines with the data retrieved from the data source to render report results at runtime.

Reports can be classified into three categories:

Report template

A report template contains static text and graphics as well as placeholders for data.

When a report is in the runtime environment, it connects to the data source associated with the report, executes the query, and applies the fetched data to the template thereby creating a report result file:

Therefore, each report result represents a unique data set; the one that exists at the time the query is run.

Data sources and datasets

Reports pull data from data sources via queries, and then expose the query results to the report designer. JReport supports the following types of data sources:

A dataset is the data that the JReport Server returns at runtime from a JReport query. A JReport query is comprised of one of the following:

Multiple data source connections can be used to generate multiple datasets. A report can use one or more datasets. Datasets can be used at design time, or at runtime for ad hoc report creation.