daseparo Posted September 4, 2009 Share Posted September 4, 2009 Hy, I'm beginner in JasperReports, maybe this problem is trivial. I don't know.I have master reposrt and subreport. Datasource is XML. In master report in Detail1 band i have 3 fields that represent one parent node from XML. That fields repeats many times. But in Detail2 band i have subreport that takes some other data from other node in that XML file.Problem is that if i have 4-5 nodes in master report that subreport is also printed 4-5 times. I want that first all data from Masterreport is printed, and after that i want subreport only once.(I can put subreport to page footer but it is also dynamic and i don't know how height will be.) sorry for bad englishPost Edited by daseparo at 09/04/2009 10:46 Link to comment Share on other sites More sharing options...
pawel_r Posted September 4, 2009 Share Posted September 4, 2009 Put subreport in summary band (or any other, that suits your needs, but not details band). Everything, which is in detail band, will be printed as many times as number of records fetched from datasource Link to comment Share on other sites More sharing options...
daseparo Posted September 4, 2009 Author Share Posted September 4, 2009 thanks,that works very well. I used to put subreport in footer bands but that didn't work.Post Edited by daseparo at 09/04/2009 11:21 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