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

Supress Page Footer in Specific Groups

Status
Not open for further replies.

bartkovs

Programmer
May 13, 2005
5
US
I have a mailing/report in Crystal 10 where the first two groups (GH1a & GH1b) is the text of the cover letter, and all other sections (Detail, Footers, etc.) is the data for the report.

In my Page Footer, I have today's date and the page number. I want to supress the Page Footer in GH1a & GH1b so it doesn't appear on the cover letter, but I do not know how to refer to the group as a whole in X-2 of the "Supress (No Drill-Down)" on the Page footer.

Any thoughts anyone?



 
GH1a and GH1B are not two groups, they are sections within the Group 1.

Anyway, you can control suppression by using the pagenumber, so just use pagenumber = 1 in the suppression formula.. Since this is the cover page, and presumably the first page, this should serve you fine.

If it's anotehr page, then reference it there.

If you have multiple letters going, if you're resetting the page number (which I assume you would), then this will still hold.

Even if you're NOT displaying the pagenumber, reset it at the bottom of each letter and this should work as well.

-k
 
Thanks, but unfortunately, I cannot use the pagenumber function due to there possibly being multiple reports going to the same address. In this case I am only generating one cover letter and resetting the page number after the letter and after each report.

So, in a nutshell, if there are 3 reports going to one address, there will be 4 page 1's in the group (1 for the letter, and 1 for each report).

Do you know of any way to set the supression on only the Group Header 1?
 
OK, not sure what you mean by that, but just use a variable then.

Of course you can suppress on group 1, but that isn't what you want.

Please try to describe your environment using proper technical terms.

It's probably easier for me to describe using variables then trying to understand your environment and describe how Crystal works.

You can create a variable in the Report headder such as:

whileprintingrecords;
booleanvar Suppressme:=false

Now in the group header 1 place the following:

whileprintingrecords;
booleanvar Suppressme

Now at whatever point in your report when you no longer want the page header, place:

whileprintingrecords;
booleanvar Suppressme:=true

Then when you're done with printing however many reports you have, this means in the last section of the report, place:

whileprintingrecords;
booleanvar Suppressme:=false

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top