Report Detail Band Not Populating

281 Views Asked by At

I am new to PB and retrieving my report. My header and footer populate but not my detail band. My arguments seem to be working correctly. Any ideas:

1

There are 1 best solutions below

2
On

I know the thread is old but I thought I could share my solution all the same :

I am using collection from Java Beans.

// Using compiled version(.jasper) of Jasper report to generate PDF
jasperPrint = JasperFillManager.fillReport(inStream, parameters, new JRBeanCollectionDataSource(mainCollection,false));

If you pass an empty main data collection, then detail bands are never rendered, even if you have only static data on them.

This is because details are used to rendered this main data collection. If you don't pass any main data, then no point in rendering them at all.

See this thread for more info : Detail Band Not Shown When Dataset NOT Empty

Looks like there is an option to bypass this limitation.