Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple detail band in JasperReports

I want to show multiple detail section in my jasper report. How to add multiple detail bands in JasperReports? For details band I am passing collection from my java class. So if I have multiple detail band how to pass the different collections to different detail band.

Can some one provide help on this

like image 886
DonX Avatar asked Mar 24 '10 12:03

DonX


People also ask

How do I add a detail band to my Jasper Report?

You can create another detail band by right-clicking your detail band in the outline and choosing "create band". But to have another header and footer, I think you need to create a subreport for each table. Set up each table with its header and footer in their own report.

How do I add a group footer band in Jasper report?

A group can even have more than one header\footer band in the designer, for example to add an header to a group it's sufficent right click on the header element in the outline view (it dosen't matter if it has black color or lightgray because at the moment there aren't other headers) and select the option "Create Band" ...

What is the difference between Jasper and Jrxml?

jrxml is a human readable XML file that contains the report template i.e. report structure and its formatting rules. . jasper is the compiled report template i.e. compiled . jrxml file.

Where can I find JasperReports properties?

At JasperReports levelIn <jasperserver-root>/WEB-IN/classes you can find the file jasperreports. properties.


2 Answers

it's seems that this question was asked long time in past. Now with new JasperReports version, multiple detail bands are possible. Please refer to JasperReports download for latest revision.

like image 97
Kuldip Shah Avatar answered Sep 17 '22 13:09

Kuldip Shah


You should use subreports.

like image 40
user132371 Avatar answered Sep 19 '22 13:09

user132371