Print Page | Close Window

New page in group

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=9393
Printed Date: 07 May 2024 at 1:16am


Topic: New page in group
Posted By: bembi
Subject: New page in group
Date Posted: 16 Mar 2010 at 5:33am

Hello,

we use Crystal Reports 9. I have the following structure in my report:

    * Group
          o Subgroup
                + Entry in Subgroup
                + Entry in Subgroup
                + Entry in Subgroup

If the page end is reached in this constellation the following can happen: The whole groups moves to the next page. Or the group gets split up anywhere.

I don't want either! I DON'T want this:

    * Group
          o Subgroup
    *******new page*******
                + Entry in Subgroup
                + Entry in Subgroup
                + Entry in Subgroup


But I do want that:

    * Group
          o Subgroup
                + Entry in Subgroup
    *******new page*******
                + Entry in Subgroup
                + Entry in Subgroup

I want to split up the group only if at least one entry in the sub group fits to the current page. Is that possible to do?

If it isn't possible in CR9 I would even get CR2008.

Please help
Juergen




Replies:
Posted By: lockwelle
Date Posted: 17 Mar 2010 at 3:15am
I don't have experience with CR2008, but page breaks are difficult in CR XI since the BEST you can do is count lines.  Complex rules like you have defined MIGHT be done in a formula, but in all honesty, I wouldn't like to be tasked with it. There are too many variables the CR is poor about reporting on.  For instance, if a row has Can Grow, you don't know how many lines it is one...you would need to count characters and if you use a TT font, good luck.  You would need know the number of lines printed (or the height of the sections and the count) to have a guess of where you are on the page, then you would need to know how many lines are in the group/subgroup and how many have been printed to be able to know when to tell CR that you would like a page break.
 
Good luck!



Print Page | Close Window