amaier Posted January 8, 2009 Share Posted January 8, 2009 Hello,i have to use two different subreports in one master detail band.Can I use only one JRDataSource that includes the master and detail data? If possible, can you please show me how it works?Otherwise how can I data put in the two subreports with the master view?I am grateful for their help in advance!Yours sincerely,Andreas M. Link to comment Share on other sites More sharing options...
tarunsapra Posted January 8, 2009 Share Posted January 8, 2009 Hi Andreas, Use 2 Different DataSources for the 2 subreport, at run time just call the MasterView template, the Subreport contains the Links of Corresponding Sections,thus use JasperResports API , JasperFillManager and JasperExportManager and JRLoader would do the Trick ,i have used 22 different highly Dynamic Sub-Reports all in 1 MasterTemplate and i just needed to call the MasterTemplate in the code and everything else was taken cared of by the JasperReports APIs. Hope this Helps..cheers Tarun Sapra Link to comment Share on other sites More sharing options...
amaier Posted January 15, 2009 Author Share Posted January 15, 2009 I've found a example source code with two datasources and it works!Thanks for your help tarunsapra! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now