Any (complete) JRXML (with parameters) can be used a subreport in the JasperReports context – but only programatically i.e. through Java or Groovy.
Do not confuse the concept of “subreport” with “dataSource” or “subDataSource” –”dataSource” or “subDataSource” are XML tags (in JRXML) to deal with XPath queries.
Leave a Reply