I have seen quite a few questions on blank subreports but none of them provide the information I need. I have a master report:
I might be wrong because I don't understand much jrxml as a code as I have always developed reports using iReport. Are u passing parameters from main report to subreport? If yes,just check ,by right-click on subreport that whether you have passed the parameters for your subreports.
May be the query in your subreport doesn't return any row. You might try adding No Data
band in your subreport, put some Static Text
in it, and set the (sub) report property When No Data
to No Data Section
.
I didn't notice any irregularities from your XML JR code. First, are you sure your Data Source (database resultset) is returning any results and is set up properly?
I would also recommend installing the IREPORT Designer tool for Jasper Reports. I think the latest version is 4.1.2. This will help you tremendously in both designing and error/exception handling.