To create a new report:
| 1. | Go to File > New > Jasper Report or click |
The New Report Wizard window displays the Report Templates page. Jaspersoft Studio includes a number of pre-installed templates; you can also create your own. See Report Templates for more information.
New Report Wizard |
|
| 2. | Select the Coffee template and click Next. The New Report Wizard shows the Report file page. |
New Report Wizard > Report file |
|
The Data Source dialog opens. This is where you choose the data that will fill the report.The drop-down menu shows the pre-installed data adapters as well any data adapters you have added. The following adapters are pre-installed:
| • | One Empty Record - Empty rows: Data adapter that lets you create a report without data. You might use this option to define the layout of a report and connect it to a data source later. |
| • | Sample DB - Database JBDC Connection: Data adapter that connects to an SQL database provided with the Jaspersoft Studio installation. If you are getting your data from a JDBC database, you must also supply an SQL query. |
| You can create a data adapter separately or click New... to create a data adapter directly from this dialog. Adapters can be created globally (embedded in the workspace) or local to a specific project. Using a local adapter makes it easier to deploy the report to JasperReports Server. See Creating and Editing Data Adapters for more information. |
| 5. | Choose Sample DB - Database JDBC Connection. Enter the query select * from orders. |
New Report Wizard > Data Source |
|
| 6. | Click Next. The Fields window appears. The Dataset list shows all the discovered fields. |
New Report Wizard > Fields |
|
| 7. | Select the following fields and click the right arrow to add them to your report. |
| 8. | Click Next. The Grouping window appears. |
| 9. | Click Next and Finish. |
Jaspersoft Studio now builds the report layout with the selected fields included as shown.
New Report in the Design Tab |
|
Recommended Comments
There are no comments to display.