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

Page Headers

Status
Not open for further replies.

brishanny

MIS
Oct 3, 2003
17
US
Is there a way to only print page headers if its greater than the first page of GroupHeader2?

Thanks
 
you haven't defined really what you want to do very well.

Do you want page Headers to appear only after a group 2 header which will happen for each Group 1 generated. Usually these come BANG_BANG after eachother...but sobeit.

It is easily done.

Put the following formula in the Group 1 header and suppress it

//@InitHeaderFlag
WhilePrintingRecords;
BooleanVar headerFlag := True;

in the header for Group 2 place the following formula

//@setHeaderFlag
WhilePrintingRecords;
BooleanVar headerFlag := False;


in the section expert

for the conditional suppress for the PageHeader place the following formula

WhilePrintingRecords;
BooleanVar headerFlag ;

//the Not Onfirst record prevents the report from starting with a page Header
not onfirstRecord and headerFlag;

Jim Broadbent

The quality of the answer is directly proportional to the quality of the problem statement!
 
Jim thanks for the response. It worked except that the page header on the very first page shows. Is there a way for me to eliminate that?

Thanks
 
hmmm...

try this in the Report header

//@firstInit (suppressed)

BeforeReadingRecords;
BooleanVar headerFlag := True;


This will represent the absolute first time I have used "BeforeReadingRecords" but this seems to be a place for it.

Jim Broadbent

The quality of the answer is directly proportional to the quality of the problem statement!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top