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 ![jss-icon-new-report.png.5d9685b0b9957fb58240cf0b5537ea3d.png](https://community.jaspersoft.com/applications/core/interface/js/spacer.png) |
New Report Wizard |
![new-report-wizard_497x387.png.cb6211811d9094ef6d59fed88ffb0cef.png](https://community.jaspersoft.com/applications/core/interface/js/spacer.png) |
| 2. | Select the Coffee template and click Next. The New Report Wizard shows the Report file page. |
New Report Wizard > Report file |
![newreport-reportfile_497x307.png.b17b6632bb312d66ea9869fca5d4235c.png](https://community.jaspersoft.com/applications/core/interface/js/spacer.png) |
| 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 |
![newreport-datasource_497x307.png.3ff465f360bb3c8348bf6e2c0d61f302.png](https://community.jaspersoft.com/applications/core/interface/js/spacer.png) |
| 6. | Click Next. The Fields window appears. The Dataset list shows all the discovered fields. |
New Report Wizard > Fields |
![newreport-fields_497x307.png.b613d45d859dddda0cb6575a1fc776cc.png](https://community.jaspersoft.com/applications/core/interface/js/spacer.png) |
| 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 |
![new-fields-added_601x299.png.2c8215f3a45c6f98aa5675372d15d07f.png](https://community.jaspersoft.com/applications/core/interface/js/spacer.png) |
Recommended Comments
There are no comments to display.