Page Header subreport problem

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?

florina.balint's picture
Joined: Mar 27 2015 - 3:43am
Last seen: 7 years 10 months ago

1 Answer:

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

AnnMary.Thomas's picture
Joined: Jun 18 2014 - 4:41am
Last seen: 1 year 5 months ago

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?

florina.balint - 7 years 10 months ago

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

AnnMary.Thomas - 7 years 10 months ago

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-gro...

florina.balint - 7 years 10 months ago
Feedback
randomness