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

SUPPRESSING HEADERS

Status
Not open for further replies.

harding1031

Programmer
Oct 21, 2004
65
US
I am trying to eliminate page headers on my last page of the report, which only have a pie chart, no detail data, but the page headers(employee id,etc) are still diplaying. How do I prevent this.

 

Put:
PageNumber=TotalPageCount

in the 'Suppress' conditional button for the page header section
 
Put:
PageNumber=TotalPageCount

in the 'Suppress' conditional button for the page header section
 
Thanks, lupins46, but this will also suppress the page headers when there is detail data on my last page along with my pie chart. I only need to suppress the headers when only the pie chart is on the last page.
 
Sorry, I just thought you were describing the last page; I didn't realise you were stating a condition.

I'm afraid I don't know how to do what you want.
 
Create two formulas:

//{@true} to be placed in the detail section and suppressed:
whileprintingrecords;
booleanvar flag := true;

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

Then go to the section expert (format->section)->page header->suppress->x+2 and enter:

whileprintingrecords;
booleanvar flag = false;

-LB
 
Thanks, LB, but this prevents all of my detail not to print, only thing printed was my pie chart.
 
Presumably you have a report which has a graph after the details, and only if that graph appears on the last page, you want the page header suppressed?

Seems odd that you wouldn't just standardize the look and feel by ensuring that the graph is on the last page by right clicking it's section, selecting format section and select New Page Before, and then lupins formula will work for the Page Header.

-k
 
My suggestion would not suppress the details section, since you are ONLY putting the suppression formula in the page header section in the section expert. When I said to suppress {@true}, I meant to right click on {@true} and suppress that formula so that it does not appear in your detail section.

-LB
 
Thanks guys, I am new to crystal reports, but your advice has helped. I used the "new page option" for the report footer and used the lastpage = totalpage in the page header for suppression. Thanks a million. I think I will become very acquainted with this forum. Thanks again!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top