Avatar of Star79
Star79
Flag for United States of America asked on

Supress page header

Hello all,
I have a crystal report XI report:
it has report header,page header,details(has a subreport), page footer, report footer(has a subreport).
When printing the report footer, how to suppress the page header?
Thanks.
Crystal Reports

Avatar of undefined
Last Comment
Mike McCracken

8/22/2022 - Mon
Mike McCracken

You can try using a formula as

OnLastRecord

That will suppress the page header when processing the last record

Right click the page header in the left margin
Click SECTION EXPERT
Click the formula button for SUPPRESS
Enter
    OnLastRecord
CLick SAVE AND CLOSE
Click OK

mlmcc
Star79

ASKER
mlmcc,
I put the formula OnLastRecord
 on the formula expert for suppress for the page header, but the page header is getting suppressed in all the pages in addtion to the report footer. I only need it suppressed in the RF
Mike McCracken

Since you didn't mention it, I assume there are no groups.

Does the detail section ever split across a page boundary?
If not try this

IN the report header add a formula
WhilePrintingRecords;
Global BooleanVar SuppressPH := False;
""

Open in new window


IN the detail section add a formula
WhilePrintingRecords;
Global BooleanVar SuppressPH;
SuppressPH := OnLastRecord;
""

Open in new window


IN the suppression formula use
WhilePrintingRecords;
Global BooleanVar SuppressPH;
SuppressPH

Open in new window


mlmcc
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Star79

ASKER
hello mlmc,
RH is already suppressed by design
PH has some logo and this has to be suppressed only in the RF
detail has a subreport which inturn has groups inside it
RF has a subreport
PF has some text and logo.
I did the above that you mentioned.It still suppressed the PH in all the pages.
Thanks.
Mike McCracken

Is there only 1 record for the report?

Is the report footer on the last page?

mlmcc
Star79

ASKER
The subreport in the details section has multiple rows and the RF is the last page
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Mike McCracken

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Star79

ASKER
hello mlmcc, the above worked but I did not understand what it actually means when we put

PageNumber = TotalPageCount in the suppress formula expert of the PH.
Pls let me know.
Mike McCracken

It is just testing if the page being printed is the last page of the report.  If so then suppress the page header

mlmcc