Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jasperreports + subreport

807597Jul 3 2005 — edited Oct 4 2005
Hello,

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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 1 2005
Added on Jul 3 2005
5 comments
275 views