I am creating a jasper report with some very specific requirements.
- The report contains a group.
- The group title should print at the beginning of the group, as well as on a new page.
This is not a problem, as I just have to say it "Reprint the title on every page." So far so good.
- The information section is not allowed to be paginated.
- The group heading should not be printed at the bottom of the page unless at least one section of the details is suitable. (May be rephrased as: The group heading should only be printed when at least one section of the part matches)
At this point, I noticed that the group is called "Min Height To Start New Page". This would be useful for details of a section of constant height, however ...
- Detailed section - dynamic height.
I tried using "Keep together" in a group, but this may leave too much free space on the pages if the first group is small and the second is large. He was rejected as a decision.
Given these requirements. All I am trying to do is not to print the group title when the page cannot fit into any details.
I suspect that when he fills out the report, he probably does not know the height of the details section until he fills it out, and by then it is too late. I hope I'm wrong.
I tried to recreate this report in two ways:
- One report with separation of groups and details.
- The main report with a subheading for the group, and within the subreport, another report for a detailed description.
Both methods led me to the same results.
Visually, if it was my data:
Province - Ontario City - Ottawa City - Toronto Province - Nova Scotia City - Halifax City - New Glasgow Province - Quebec City - Montreal City - Quebec City
I can get this result:
**Page 1** Province - Ontario City - Ottawa City - Toronto Province - Nova Scotia City - Halifax City - New Glasgow Province - Quebec **<- This hanging header is unwanted** **Page 2** Province - Quebec City - Montreal City - Quebec City
I tried a lot of permutations of the settings, putting the subheadings in different groups, but I did not find something that works. I hope someone knows about a combination of settings, placing subscriptions in different groups, etc., that will work.
Any idea how I can do this?