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

Suppress page header when report footer prints 1

Status
Not open for further replies.

Meredith

Technical User
Mar 8, 2002
17
US
I have a report that contains a subreport in the report footer. I don't want the main report's page header to print when the report footer prints (therefore printing the main report page header on top of the subreport). I also do not want the page header of the main report to print on the first page so currently I have a suppression condition in the pageheader that says:

Code:
pagenumber = 1

The first page suppression formula works but I just don't know how to combine that along with the condition to not print when the report footer prints.

Any help is appreciated!
Thanks.
 
Meredith,

Try suppressing the page header if

PageNumber = 1 or
PageNumber = TotalPageCount

I think this should work.
 
It works - kind of. The problem is that it just suppresses the header on the very last page. Unfortunately my subreport is several pages long and so it has to suppress from the time that the report footer prints. Thanks though!
 
Meredith,

Try creating a formula (call it SuppressPageHeading) something like this:

If OnLastRecord then "y" else "n"

Conditionally suppress the page heading if SuppressPageHeading = "y"

This could be a problem if the last record of your detail section moves to the top of a new page - you might not get a page heading for that page.

I haven't tested this, but its the direction I would go.

MrBillSc

 
I have the same problem as Meredith. My report footer contains a crosstab report that is several pages long. I want to suppress the page header on all of the pages of this crosstab. Cannot get it to work.

Thanks, Linda
 
Create 2 report footers, A and B, and put your crosstab in B.
Then create a boolean variable in a formula that you put in A:

WhilePrintingRecords;
BooleanVar Suppress := True


Then suppress the PH with:

WhilePrintingRecords;
BooleanVar Suppress Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Expert's Guide to Formulas / Guide to Crystal in VB
- tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top