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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting top of page to repeat non-group header

Status
Not open for further replies.

maggiesda

Programmer
Jul 28, 2000
23
US
I have a header in Report Footer a. This header applies to information displayed in Report Footer sections a through i. I want to repeat the header if these sections flow to the next page. Is there a way to determine if a section is on the top of the page? I figure I could put a copy of the header in every section and conditionally suppress it. But to do that, I need to know when a section is at the top of the page.

Thanks in advance.
 
One means would be to use a global variable in conjunction with another page header (use the insert section below).

In the new Page Header section that is conditionally suppressed use:

global booleanvar carryover;
onfirstrecord or carryover

Formula in the group footer A
global booleanvar CarryOver := False;

Formula for the rest of the group footers:
global booleanvar CarryOver := True;

Now when the CarryOver = True (we're still in a group footer section) this new page header will print.

-k kai@informeddatadecisions.com
 
A million thanks.
Because we're using a native connection (dao with ACCESS), I did have to add the evaluation-time "WhilePrintingRecords" to all formulas but the suppression one. It worked like a charm!
 
I almost forgot to mention a slight revision:
In the suppression formula, I changed it to "carryover = false"; in other words, if we haven't gotten to the subsequent Report Footers we do not want to display the new carryover Page Header.
I also declared the carryover var in the Report Header and set it explicitly to FALSE: I can never keep straight what the default values are for Crystal variables.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top