Why don't I see my subreport?

Subreports are just normal report templates that are embedded into some other containing report template. When no data source is supplied to them or when the supplied data source does not contain any records, subreports could behave in different ways, depending on the whenNoDataType property.

By default, the engine does not generate anything for the subreports or reports that did not receive any data thought their data source. And this is the most common reason for not seeing subreports being generated at runtime. The easiest way to check this is to instruct the engine to generate at least some of the subreport sections so that we can see the subreport is there. You can do that by setting the whenNoDataType property of the subreport template to the "AllSectionsNoDetail" value.

Another possibility is to provide a customized output to replace the entire empty subreport. You can do that by setting the whenNoDataType property of the subreport template to "noData". And of course, you have to add and customize the noData section in the subreport template.

Feedback
randomness