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 strongm 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

Status
Not open for further replies.

MTarkington

Programmer
Feb 14, 2001
73
US
Good afternoon,

My report has 1 subreport in the Report Footer b. I need to be able to supress the page header for the pages that contain the subreport.

Right now, at the end of the report, I get the page heading from the first few pages, but the data from the subreport.

I know there has to be a simple way to do this, but I can't figure it out...

TIA,
Mark
 
In report Footer A, place the following formula:

whileprintingrecords;
booleanvar SuppressPH:=true

In the page header suppres formula place:

whileprintingrecords;
booleanvar SuppressPH

It will be false until it starts the subreport.

If you need to show page headers AFTER the subreport has fired, create a report footer C and place:

whileprintingrecords;
booleanvar SuppressPH:=false

-k
 
When you say add code to report footer a, are you talking about in the Section Expert?
 
No.

Create a formula, the method for creating a formula is based on your version of Crystal, which you didn't bother to post (any software post in any forum needs that information).

Assuming that you can see the Field Explorer in your development screen, right click the Formulas and select NEW.

The Page Header suppress formula is found by right clicking the Page header and select format section and clicking X2 next to suppress.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top