I have a problem that in some of our reports, we end with a group that occasionally will page break after the group header and before the first detail section. We want to eliminate this group header from printing at the bottom of the page, either by suppressing it or moving the page break to before the group header. The scenario happens in quite a few reports.
If there is at least one detail record that will print on the same page, then we want it to print on that page and then repeat the group header on the next page with the next detail records.
I have done a search on this and found some other postings on how to solve this, but they don't quite fit my needs.
Now for why the other posted solutions don't work:
1. the "keep together" goup option - if there is at least one detail record that will print on that page, then we don't want to page break before the header.
2. The "put the first detail record in the group header" option - does not work for us as we need to repeat the group header on every page
3. The "line count" and page break if the line count gets above a certain value - this does not work for us as with all the subreports, can grow sections, logos and graphics in our reports, there is not reliable way to keep track of the number of lines that have actually been used.
I keep thinking there must be an easy and elegant way to do this and that it must be more common than it seems.
B.
If there is at least one detail record that will print on the same page, then we want it to print on that page and then repeat the group header on the next page with the next detail records.
I have done a search on this and found some other postings on how to solve this, but they don't quite fit my needs.
Now for why the other posted solutions don't work:
1. the "keep together" goup option - if there is at least one detail record that will print on that page, then we don't want to page break before the header.
2. The "put the first detail record in the group header" option - does not work for us as we need to repeat the group header on every page
3. The "line count" and page break if the line count gets above a certain value - this does not work for us as with all the subreports, can grow sections, logos and graphics in our reports, there is not reliable way to keep track of the number of lines that have actually been used.
I keep thinking there must be an easy and elegant way to do this and that it must be more common than it seems.
B.