Print Page | Close Window

Keeping groups together

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=988
Printed Date: 02 May 2024 at 12:07pm


Topic: Keeping groups together
Posted By: yggdrasil
Subject: Keeping groups together
Date Posted: 11 Jul 2007 at 4:25am

Maybe a silly question, but is there a way of starting a new page with a group header, but not after every group?

I have a report with  groups: GH,D,D.D,GF, GH,D,D,GF and so on.  (GF is usually empty).  Depending on the number of detail records, maybe four or five will fit on a page. I would like to keep each group together on a page, ie start a new page with a group header.  But all the methods I have tried either put only one group on a page, which wastes paper, or don't work at all.   I mostly want to avoid the group header being at the bottom of a page isolated from the details.  I have 'Keep together' ticked




Replies:
Posted By: foxy
Date Posted: 12 Jul 2007 at 2:40am
I think if you go into the 'section expert', select the group footer & make sure that the 'new page after' option is ticked. I think that is what you are after.


Posted By: yggdrasil
Date Posted: 12 Jul 2007 at 7:53am
Nope, that puts each group on a new page. That is what I don't want. I want as many whole groups as I can get on a page.


Posted By: foxy
Date Posted: 12 Jul 2007 at 8:09am
Ah rite, should have read the post properly! apologies. I'll see what i can find out


Posted By: yggdrasil
Date Posted: 20 Jul 2007 at 6:32am
Still hoping for enlightenmentConfused


Posted By: BrianBischof
Date Posted: 20 Jul 2007 at 8:15am
CR uses the rule that if you set a GH to be 'Keep Together' then it tries to print the entire group on the remaining portion of the page. But if it sees that the whole group can't fit on the page, then it will start printing at the top of the next page. Thus, small groups can usually be squeezed into the bottom of a page, and CR will do it whenever possible. Large groups that require more than one page automatically get their own page no matter how much empty space is left on the previous page because they can never completely fit at the bottom of the previous page. That is the best CR can do. It doesn't have a rule that says "Only start a new page if less than 25% white space is left." or anything like that.

-------------
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>


Posted By: yggdrasil
Date Posted: 24 Jul 2007 at 4:24am
I thought that was what should happen. I do have the GHs set to 'Keep Together', but the report still splits them. Is there maybe an option I have set wrongly somewhere that is overriding the default?


Posted By: jax200
Date Posted: 26 Jul 2007 at 5:07am
Right-click Group Header in Design.
Go to Change Group and select Options tab and select "Keep group Together".



Print Page | Close Window