florina.balint Posted March 27, 2015 Share Posted March 27, 2015 Hello, I have a problem on subreport. I want that my Page Header to repeat on each page so I set the elements on it with property Print Repeated Values. The problem is that if i don't have enough space on page it display only the header without any informations from detail (The problem is that in this case I want to print the header on a new page) and on the next page it display header with informations from detail as it should and as i want. So can anyone help me to solve this problem? Link to comment Share on other sites More sharing options...
AnnMary.Thomas Posted March 27, 2015 Share Posted March 27, 2015 Is your header define as a subreport which your are calling from main report. Then say the subreport only has header?. Then the height of subreport header should be the same what you specify in main report Link to comment Share on other sites More sharing options...
florina.balint Posted March 27, 2015 Author Share Posted March 27, 2015 In my subreport I have Page Header and Detail bands.I want that information that is here to repeat in my main report.The problem is that if i don't have enough space on main report page it print only the header and on the next page it prints header+details informations as I want. What can I do so that if I don't have enough space for at least one row of information from detail band to not display the header? I'm not sure if you understand my problem. Can you help me? Link to comment Share on other sites More sharing options...
AnnMary.Thomas Posted March 30, 2015 Share Posted March 30, 2015 So when you are putting this sub report on detail band, set the detail band's split type property to "Prevent". This would stop the split happening for the first time. If this helps please mark as answer or reply and we will look for other possibilities Link to comment Share on other sites More sharing options...
florina.balint Posted March 30, 2015 Author Share Posted March 30, 2015 Thank you for your answer.I succeed to solve my problem using the answer that i found here : http://stackoverflow.com/questions/27404668/jasper-report-only-print-group-header-when-at-least-one-detail-fits-on-page 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