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

Suppressing Page Header 1

Status
Not open for further replies.
Feb 9, 2009
77
US
I have a main report with two subreports on the report footer. I want the page header to change once it starts showing the subreports. The problem is that the main report is dynamic, so the length varies. Any ideas of what I can do?
 
Create these formulas:

//{@false} to be placed in the report header:
whileprintingrecords;
booleanvar flag := false;

//{@true} to be placed in Report footer_a:
whileprintingrecords;
booleanvar flag := true;

Put the page header fields you want in the first part of the report in page header_a and those you want for the subreport pages in page header_b. Then in the section expert, select page header_a->suppress->x+2 and enter:

whileprintingrecords;
booleanvar flag;
flag = true //note no colon

Suppress page header_b with:

whileprintingrecords;
booleanvar flag;
flag = false //note no colon

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top