You can add your own templates, or use one of the supplied templates to create a report from scratch. You have three data source options:
| • | One Empty Record - Empty rows: This is default data adapter for creating 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: This is an SQL database provided with the Jaspersoft Studio installation. |
| • | Create a new data adapter: Jaspersoft Studio supports a wide variety of data sources. |
To create a new report:
| 1. | Go to File > New > Jasper Report or click |
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 |
|
| 4. | Click Next. The Data Source dialog opens. The drop-down menu shows all global data adapters as well as any data adapters available in the project folder you selected. For this example, we use one of the global data adapters shipped with the product, but using a data adapter that is local to a project makes it easier to deploy the data adapter 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.