jpp74 Posted August 3, 2009 Share Posted August 3, 2009 Hi All,I have to generate a big pdf document with jasper. I cut the content in subreports.In my master report, I defined two subreports in detail section: subreport1 and subreport2.In subreport1 I defined two sub reports: sub1subreport1, sub1subreport2.In subreport2 I defined two sub reports: sub2subreport1, sub2subreport2.My problem is that only subreport1 (the first sub report of my master report) is displayed, If I delete the first subreport the second subreport is displayed.When I use subreports in a main report, I set the positionType of the first report to FixeRelativeToTop and the second one to Float.I join jrxml files to my post.Master: M14.jrxmlSubReport1:PresGeneFctChapitre.jrxml Sub1subReport1: PresGeneBudgetDepFct.jrxml Sub1subReport2: PresGeneBudgetRecFct.jrxmlSubReport2:PresGeneInvestChapitre.jrxml Sub2subReport1: PresGeneBudgetDepInvest.jrxml Sub2subReport2: PresGeneBudgetRecInvest.jrxml Thanks for help. Link to comment Share on other sites More sharing options...
jpp74 Posted August 5, 2009 Author Share Posted August 5, 2009 I found my error, it’s a classic error for new user of Jasper, I reused the same datasource in different reports (I defined a static variable for JREmptyDatasource). 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