jasperreports + subreport
807597Jul 3 2005 — edited Oct 4 2005Hello,
I'm in trouble about subreporting..
Can I use two datasources (jrtablemodeldatasource) at runtime for master/subreport ?
I mean i want to report such as..
JasperPrint jasperPrint = JasperManager.fillReport("MasterReport.jasper", parameters, new JRTableModelDataSource(modelx));
JasperPrint jasperPrintd = JasperManager.fillReport("Subreport.jasper", parameters2, new JRTableModelDataSource(modelxx));
and view them for subreporting? The problem is i should use datasources on fly.
Maybe i should define a parameter type of datasource and send it to detail?