JReport supports three types of reports: Page Report, Web Report and Library Component. All serve different reporting requirements.
Page reports are composed of one or more report tabs that are designed for the same or related purposes. Report developers can design, maintain, run and schedule these report tabs together or separately. Page reports are designed for paginated result sets as well as more complex reporting techniques such as pixel-perfect reporting.
Web reports provide easier and faster report creation and design, faster report execution, streamlined customization and interactive presentation style using the latest Web technology.
Library components or widgets, are charts, tables, crosstabs, control components and others, that are created and edited in JReport Designer for use in dashboards.
JReport Designer requires access to your data sources to retrieve data for reports, so before you can create reports in JReport Designer you need to set up connections to your data sources. Currently the following methods are provided for you to achieve this goal: via JDBC Connection, XML Connection, SOAP Web Service Connection, MongoDB Connection, HIVE Connection, JSON Connection, Elasticsearch Connection, or by creating Hierarchical Data Source and User Defined Data Source.
When a connection is set up, you can create queries and business views based data resources from the connection, and then use the queries and business views to create reports.
Hierarchical data sources (HDS) and user defined data sources (UDS) can be used to create page reports directly.
Click JReport Designer in the JReport folder on the Start menu to start JReport Designer.
On the Start Page, click Page Report in the Create category.
In the Select Component for Page Report dialog, decide whether to create the page report using business views (by default page reports are query based).
Since a page report cannot be empty, you will also need to create a report tab in it when creating the page report.
JReport provides you with the following component types to start a page report tab:
Banded
Creates a report containing a vertical banded object.
Table (Group Above)
Creates a report containing a table with group information above the detail panel.
Table (Group Left)
Creates a report containing a table with group information left to the detail panel.
Table (Group Left Above)
Creates a report containing a table with group information left above the detail panel.
Summary Table
Creates a report containing a table with only group and summary information.
Chart
Creates a report containing a chart.
Crosstab
Creates a report containing a crosstab.
Horizontal Banded
Creates a report containing a horizontal banded object.
Mailing Label
Creates a report containing a banded object in the form of a mailing label layout.
Tabular
Creates a report containing a tabular component.
Blank
Creates a report with nothing in it.
Click OK to create the page report with its first report tab.
Creating a web report
In JReport Designer, click File > New > Web Report. A blank web report with a tabular of one cell is displayed.
Click Insert > Chart. The Create Chart wizard is displayed.
Select a business view in the Data screen.
We will use the default chart type and skip the Type screen. Click Next twice to access the Display screen. Define the data in the chart.
Click Finish to create the chart.
Click the View tab to preview the web report.
Creating a library component
In JReport Designer, click File > New > Library Component.
In the Select Component for Library Component dialog, input a title for the library component and select the component you want to create in the library component.
Click OK.
If Blank is selected as the layout, a library component which is blank will be created. You can then use the Components and the Data panels to add components to the library component.
If you select a component type, the corresponding wizard is displayed. Specify the settings according to your requirements.