There are two types of ad hoc reports in JReport, Web Report and Page Report. Both are created from a business view in a catalog. Business views have the capability of providing multiple hierarchies allowing for automatic drill down and drill up for detailed analysis and slicing and dicing data which is especially powerful using a crosstab component.
In the JReport Server Start Page, click Web Report in the Create category.
Web Report Studio is then displayed in a new tab, prompting you to select data for the new report.
In the Select Catalog dialog, select the catalog published to the server resource tree, which contains the data you want to use for the report. Click OK.
In the Select Data Source dialog, select the required data source in the specified catalog from the Data Source drop-down list, the business view in the selected data source in the Resources box, then check the checkboxes ahead of the data fields you want to display in the report.
In the JReport Server Start Page, click Page Report in the Create category.
In the displayed page, select the folder that contains the catalog you want to use to create the page report and then the catalog. Click OK.
The New Page Report dialog appears for you to create a page report with the first report tab in it.
Specify the title of the report tab in the Report Title text box.
In the Choose Report Layout box, select the required layout with which you want to create the report tab.
Click OK to create the report.
If Blank Report is selected as the layout, a report which is blank will be created. You can then use the Toolbox and the Resource View panels to add objects and view elements to the report.
If you select the layout as Banded, Table, Chart, or Crosstab, the corresponding report wizard will then be displayed. Specify the settings according to your requirements.