same detail shown multiple times in a page and in multiple pages(iReports as well as JasperSoft Studio

I want a table and a chart in my report in a single page and that's it. But why the heck does it displays the table and chart two times in a single page and there are like 222 pages showing the same stuff.

vidgaf's picture
Joined: Jul 6 2015 - 11:22pm
Last seen: 7 years 1 month ago

1 Answer:

Where did you put the table and chart element in the report? They should be placed in SUMMARY section, not detail section.  JR report detail band is called for each row fetched into report. If you have 100 rows, it will display information in the detail band 100 times each with details of that row. Tables and charts gather and tally all your data to display and should be placed in the summary band thus have them displayed only once.

tchen's picture
Joined: Feb 27 2008 - 7:33am
Last seen: 3 days 21 hours ago