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):

The resulting report, the first page:

and the second one:

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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With