Showing multiple types of data in the same report

JasperReports allows full flexibility of combining different types of data into a single report. The data can even come from multiple databases.

This recipe shows how you will display multiple types of data in a single report. You will use multiple subreports and multiple-detail sections to achieve your goal.

Getting ready

Refer to the installPostgreSQL.txt file included in the source code download of this chapter to install and run PostgreSQL, which should be up and running before you proceed.

The source code of this chapter also includes two files named copySampleDataIntoPGS.txt and copyCustomerHistorySampletDataIntoPGS.txt. The copySampleDataIntoPGS.txt file will help you create a database named ...

Get JasperReports 3.6 Development Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.