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!

Prob Printing Group Header on Page w/ only Group Footer

Status
Not open for further replies.

kirbytheresa

Programmer
May 25, 2002
12
US
The group header is being suppressed by Crystal on pages where the group footer winds up on a page by itself. I am using Crystal 8.0.

My report looks like:
Group Header (on every page except report footer, new page before each group)
Details
Group Footer (on same page as details, unless the last group record is at the end of the page)
Report Footer

I have tried making the group header a page header and suppressing it on the report footer but can't seem to make this work either.

Any ideas?

Thanks.

Theresa

 
I'm a tad confused about the intent.

If you want to assure a Group Header on the page footer page (which isn't really a Group Header), you can probably cheat this by adding an additional section to the group footer that is only displayed ONLASTRECORD and have a new page before on it.

This section would have the following formatting:

{The Group Name}

Suppress:
not(onlastrecord)

New Page Before:
onlastrecord

Might get ya close...

-k kai@informeddatadecisions.com
 
Thanks for the help.

The intent is to print the group header on every page except the report footer. I think this should be accomplished using the 'Repeat Group Header on Each Page' group option. The group footer should print at the end of the group, on the same page, if possible. The problem is with the group header. It is not showing up on the page when the page break occurs after the last group detail line and before the group footer.

Before I copy the group header into the group footer (to be conditionally suppressed), I would like to figure out if I'm doing something wrong or if this is a Crystal problem. I have many reports with similar formatting.

Thanks again.

Theresa
 
Crystal will only repeat the GH if there is at least one detail on the page. I would use the page header, and suppress it with:

pagenumber = totalpagecount Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
That is exactly what I did when trying to solve it on my own. However, it then suppressed the GH on the last page of every group. Does it reset TotalPageCount for each group ??? Is there another way to identify last page (or report footer)?

Thank you.

Theresa
 
Go into "Format - Section" and highlight the group footer for this group. See if you have checked the "Reset page Number for each group" property. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Yes, I did and I need to. I should've thought of that. Is there another way that I can identify that I'm on the report footer?

Thanks...t
 
That is your problem. You don't want to check to see if you are in the group footer. You want to know if you are on the last page header. By the time you get to the report footer, the page header has gone by.

Try:

pagenumber = totalpagecount
and
{Group.field} = Maximum (Group.Field}

Note that this last line is NOT using the "group name field", but the actual field you are using as your group field. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top