Crosstabs
Crosstabs (cross-tabulation) reports are the reports containing tables that tabulate the data across rows and columns. This feature was introduced in JasperReports 1.1. The following example illustrates the use of crosstabs in a report. The JRXML template will generate a report displaying a table containing the number of aircraft in each city of the state of New York. The last column of the table will display the total number of aircraft for all models in each city. The last row will display the total number of aircraft of each model in the table. To avoid having an unmanageable number of columns in the table, we will limit the report to aircraft models that start with the letter "C".
<?xml version="1.0" encoding="UTF-8" ?> <jasperReport ...
Get JasperReports 3.5 for Java Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.