I was able to get subreports working, but it doesn't seem ideal. The only way I could figure out how to set a datasource for a subreport was to make it a parameter. Is this the only way?
<parameter name="standards" isForPrompting="false" class="net.sf.jasperreports.engine.JRDataSource"/> ... <dataSourceExpression><![CDATA[$P{standards}]]></dataSourceExpression> I think it would be a nice addition to JRSubreport to have setDataSource(JRDataSource) and setJasperReport(JasperReport). Cameron On 6/30/06, Cameron Taggart <[EMAIL PROTECTED]> wrote: > How do I fill subreports? > > Here is the method I'm using to fill reports using a custom JRDataSource: > static JasperPrint fillReport(JasperReport jasperReport, java.util.Map > parameters, JRDataSource dataSource) > > I was looking for ways to subreport element key or data source > expression and could see how to get them from a JasperReport instance. > > Any help would be greatly appreciated! > > Cameron > Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ jasperreports-questions mailing list jasperreports-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jasperreports-questions