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!

Suppress headers on subreports

Status
Not open for further replies.

Tech2377

Programmer
Nov 13, 2007
81
I am trying to suppress the page headers on my subreports. Setting shared variables in the report header, group header and below the subreports.

I have two subreports listed in seperate report footers. the problem is the page keeps printing on the first subreport. I can move the formulas around and get some different results but then the page header prints on either the first or second report footer. I can't seem to get it to not print on either.
 
The page headers must be in the main report. If you have "new page before" set on the first report footer section, you can suppress the page header in the section expert with a formula:

not onlastrecord

The only time this would not work correctly would be if your final detail record was orphaned on the last page--then it would be appear with no page header fields.

Another way to do this is to set up two formulas in the main report:

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

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

Then go into the section expert->page header->suppress->x+2 and enter:
whileprintingrecords;
booleanvar flag;
flag = true;//note no colon

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top