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

Suppress main page header on subreport 2

Status
Not open for further replies.

rjl001

Technical User
Nov 23, 2003
7
AU
Crystal version 9 - I have a main report with a summary subreport, my subreport has it's own page header but I get the page header from main report printing as well. How do I stop this happening ?
 
I am using CR 8.5 and I just supress the Page header. I am sure CR 9.0 should have the same functionality.

Kchaudhry
 
I require the main page header to print on the first part of the report and only suppress on the sub report pages.
 
Set a variable in a formula prior to running the subreport in whatever section is appropriate (you can right click any section and select insert section below, move the subreport in there, and then place this formula in the section the subreport was in), such as:

whileprintingrecords;
numbervar SuppressPageHeader:= 1;

Now reference the vairable in the suppression for the page header, as in:

whileprintingrecords;
numbervar SuppressPageHeader;
SuppressPageHeader = 1

Select New Page Before in the subreport section formatting, and you should be good to go.

If you want the page header to continue after the subreport finishes, reset tha variable to 0 after the subreport runs:

whileprintingrecords;
numbervar SuppressPageHeader;
SuppressPageHeader = 0;

-k
 
synapsevampire,

That worked perfectly, thanks heaps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top