开发者

Multiple detail band in JasperReports

开发者 https://www.devze.com 2022-12-25 00:30 出处:网络
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 hav

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


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.


You should use subreports.


Multiple "Detail" bands is not possible. You can add "Group Bands" before and after the Detail band though.

UPDATE
For the upper part of the report:

  • The Detail Band is the one with the Product Line, Name, Amount ... etc.
  • The Group surrounding the Detail, containing the Branch is one level upper group.
  • The Group surrounding the Branch Group is the State Bang, its the top level.

First make two groups, call one of them "State" and the other "Branch", When writing your query make sure you order the results by State, then Branch. If you do that, Jasper will make sure to group the results exactly as in the snapshot.

Check this snapshot, you should make the report something like this:

Multiple detail band in JasperReports

0

精彩评论

暂无评论...
验证码 换一张
取 消