|
Re: Fill Subreports: msg#00005java.jasperreports.general
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 <cameron.taggart-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx> 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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Multi page html report, Kalpesh Chordia |
|---|---|
| Next by Date: | SQL issue while running from java, Md. Mortoza Ali Khan |
| Previous by Thread: | Multi page html report, Meenakshi Singh |
| Next by Thread: | SQL issue while running from java, Md. Mortoza Ali Khan |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |