Solved

Supress page header

Posted on 2013-11-21
9
500 Views
Last Modified: 2013-11-21
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.
0
Comment
Question by:Star79
  • 5
  • 4
9 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 39666254
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
0
 

Author Comment

by:Star79
ID: 39666322
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
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39666372
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
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

Author Comment

by:Star79
ID: 39666445
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.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39666633
Is there only 1 record for the report?

Is the report footer on the last page?

mlmcc
0
 

Author Comment

by:Star79
ID: 39666730
The subreport in the details section has multiple rows and the RF is the last page
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39666776
Try this to suppress the page header

PageNumber = TotalPageCount

mlmcc
0
 

Author Comment

by:Star79
ID: 39666809
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.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39666817
It is just testing if the page being printed is the last page of the report.  If so then suppress the page header

mlmcc
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question