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

Group Page Count

Status
Not open for further replies.

mdwg2020

Programmer
Feb 17, 2005
51
US
Here it is, I am printing a report that has grouping in it. I force the report to print a new page when it is time to change groups. What I would like to do is modigy my headings on any page for a group that is not the first page. For instance, if I am looking at the first page for a specific group, it should have detailed headings, however, the subsequent pages for that group doesn't have to have all of the headings that are available. If I knew how to count pages, and have that count reset per group, I could simply suppress the headings when GroupPageCount > 1. Does anyone know how this can be done?

Brooks
 
Do you have the option of resetting the pagenumber on change of group? If so, then you could you simply use:

pagenumber <> 1

...to suppress page header sections you don't want to appear on subsequent pages.

-LB
 
No, I actually don't see a way to do that, but you would think that you would have the capability. I thought I would be able to manage a page special field, similar to running total fields but no. I also don't know if I can manually count them with some sort of function. Maybe someone else knows!
 
Use group headers a & b (GH1a & GH1b) and control which one is visible and which one is suppressed using the InRepeatedGroupHeader or (NOT InRepeatedGroupHeader) expression in the suppress attribute of the section.

InRepeatedGroupHeader returns TRUE when a Group Header section is repeated on a second, third, etc., page.

Cheers,
- Ido

Visual CUT & DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
I'm unclear whether you do not want to reset the pagenumber or whether you do not know how to. You can go into the section expert, and select the group footer->check "Reset Page Number After." You should also check "New page after" and add the following to the formula area:

not onlastrecord

This would cause a new page for a new group, with each group starting with page number 1. Then the suppression formula based on page number would work.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top