Posted 11 September 2018, 9:40 am EST
Hello, our company creates several reports that use a main report - sub-report paradigm. The main reports’ page headings needs to print for each page until the first full page of a sub-report is printed wherein we want the sub-report headings to print instead.
We have this working, albeit on a limited basis where the main report headings are printed on the last page of the main report, after the totaling is done for the main report and then it does print the sub-report headings on the first full page of the sub-report. This was done by putting the main reports’ headings into a group header/footer, leaving the report title, date and page number on the page header. Then in properties for this new group header, we set the RepeatStyle to OnPage so it prints it for every page of the main report.
On the sub-report, we also created a group header/footer and put the headings in there for it and also set the RepeatStyle to OnPage. If the sub-report only prints one full page and doesn’t roll over to subsequent pages, the report works fine. But…if there is/are second and subsequent sub-report pages to print, the group header doesn’t print. I have tried putting in a Data value in the sub-reports’ group header and increment it so that it triggers the group header format event and prints the group but it doesn’t give desirable results (the headings will print on a page, but not at the top, only randomly between records throughout the rest of the report).
Is there a way to have sub-report group headers print at the top of the page always once the sub-report is given priority?
Thanks