Does that help Unfortunatelly, the strech types in jasper only works between bands, not within the band. You can't (even manualy) create a jrxml which will cause a lower element in a band be correctly possitioned when an upper element overflows.
JRDesignSection detailSection = (JRDesignSection)design.getDetailSection();
JRDesignBand detail2 = new JRDesignBand();
Does that help I had the same problem for more than 1 day. In the application I am developing on there are multiple JasperReports which work. I encountered this problem when adding a new one. No matter what I tried, nothing displayed in the Detail band. I tried everything from triple-checking the Controller that populates the report, to upgrading to the latest jasperreports jar and latest iReports version. Nothing seemed to work. The problem is that the report is set by default to: When No Data: All Sections, No Detail, which basically means that if no data is sent to the report, it will display all sections, except for the Detail one.
Hope this helps The Detail band will be generated as many times as the number of records you have in your main dataSet(populated by the top-level query). If you want to keep the subreport in the Detail band, which is normal by the way, you can do one of these things:
How to sum the values returned by a subreport placed in detail band?
around this issue You can specify a calculation type (like sum) when returning values from subreports. Therefore if you want to sum returned values for each group, you'll have to do something like this:
help you fix your problem I am having issues with populating data in subreport in the title band of the main report. The data is populated correctly in subreport in the detail band of the main report. I am trying to find what could be wrong in the JSON query. Any help is appreciated. , Your are going to deep in your initial json query