Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wrong page heading caused by subreport

Status
Not open for further replies.

RuthNH

Programmer
Sep 13, 2002
1
US
I am using Crystal Reports XI for some reports with many sub reports.

Account information is displayed on each page heading. There is a 'new page before' set in the account group header. Everything works fine for most accounts.

The problem occurs when a sub report prints data right to the last line of a page. The new page happens as it should but the account information in the page header is for the previous account (instead of the account that the new page's data is for).

While trying many workarounds we have seen that the page heading (in these cases) prints before considering the first record for the new page. We have tried placing all the page header information in the group header but the issue still exists.

We also tried placing a blank section in the main report after the section containing the sub report. This causes a blank page (with the previous account's page headings) but at least there are no more wrong page headings. Unfortunately blank pages are not acceptable to those receiving the reports.

Is there a fix for this page heading issue?

Is there some way to test if the blank section after the sub report is being 'printed' on the first data line of the report and be able to suppress that page? We have tried to conditionally suppress that 'push' section but it does not solve the problem. The tests we tried seem to have a sequence of processing issue.

I could sure use some help with this please.
 
I can't recreate your issue in XI. Do you have more than one group? If so, what are they? Are any groups set to repeat header on each page? If you have a higher order group, what are the section expert settings for that? What section(s) are the subreports in?

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top