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!

subreport

Status
Not open for further replies.

darahw

Technical User
Feb 27, 2003
74
US
How do I supress the page header of the main report on the sub report pages?

When the subreport appears on the screen I don't want the original report page header to appear.
 
I think you're up against a basic limit to crystal. You could arrange for the subreport to return something, just to show it had run, and then supress the report header if it was set. But I've a nasty feeling that the decision to print or not print report header.

An alternative is to supress the report header after page 1, if that suits your report design. Madawc Williams
East Anglia
Great Britain
 
To print the header after page 1 would be good but the length of the original reports varies. Is there a way to write a formula suppress page header after original report done?
 
Set a variable to a particular value while the subreport is running, then switch back when it is complete. Suppress based upon the variable.

In the report header:

global booleanval suppressheader := false;

In section just before subreport (you may need to create one)

global booleanval suppressheader := true;

in section just after supreport:

global booleanval suppressheader := false;

In the page header suppression formula:

global booleanval suppressheader;
suppressheader

Lisa


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top