Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Empty space below table in JasperReports

I´m designing a report with JasperReports. That uses a table component to display the data. Table component use JRBeanCollectionDataSource as dataSource. The thing is that when I see the preview it displays several tables on the same page and it creates several pages too, even though my dataSource only returns 4 records, I have done a lot of search and found nothing.

My report design (in iReport): Report design in iReport

The resulting report, the first page:

The first page of the resulting report

and the second one:

The second page of the resulting report

like image 823
bashe15 Avatar asked Nov 17 '25 01:11

bashe15


1 Answers

It sounds like you need to put the table component into the title band or summary band so you only get one table. You could also (or instead) change the main report query to return a single row or to display All Rows No Detail when the main query has no records.

like image 70
mdahlman Avatar answered Nov 19 '25 15:11

mdahlman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!