Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Multiple Grouping Issues - Widows & Orphans Post Reply Post New Topic
Author Message
YSLGuru
Newbie
Newbie


Joined: 18 Nov 2009
Location: United States
Online Status: Offline
Posts: 6
Quote YSLGuru Replybullet Topic: Multiple Grouping Issues - Widows & Orphans
    Posted: 18 Nov 2009 at 2:40pm
CRYSTAL VERSION: 9
 
Apolagies if this is somethinga lready asnwered to death but I can't find an answer to this myself.  I alos alogaize if this doesn;t make sense as I have tried several re-writes to properly articulate this isue; an issue that is easy to show when vieiwng the actual report but hard to describe.
 
In order to properly show what is happeneing I'm going to use dummy data in teh form of an outline.
 
My problem is with having the header of an outer group appear on a page byitself when the next groups data is more then can fit on the remaineder of the page that the group 1 header is on.  I can't simply disable the KEEP TOGETHER Group setting because then I'd end up also having a case where I get an orphan Footer for Group 1 by itself when part of the Group under it on the prior page shoudl have been moved forward one page and paired with the footer.
 
//This is what I should get
 
GRP1 - HDR
  GRP 2 - HDR
     GRP3 - HDR
       DETAIL LINE 1
       DETAIL LINE 2
     GRP3 - FTR
   GRP2 - FTR
GRP1 - FTR
<----PAGE BREAK---->
GRP1 - HDR
  GRP 2 - HDR
     GRP3 - HDR
       DETAIL LINE 1
       DETAIL LINE 2
     GRP3 - FTR
<----PAGE BREAK---->
   GRP2 - HDR
     GRP2 - HDR
       DETAIL LINE 1
     GRP3-FTR
   GRP2 - FTR
GRP1 - FTR
<----PAGE BREAK---->
 
//This is what actuall is happening
GRP1 - HDR
  WHITE SPACE
  WHITE SPACE
  WHITE SPACE
<----PAGE BREAK---->
  GRP 2 - HDR
     GRP3 - HDR
       DETAIL LINE 1
       DETAIL LINE 2
     GRP3 - FTR
<----PAGE BREAK---->
   GRP2 - HDR
     GRP2 - HDR
       DETAIL LINE 1
     GRP3-FTR
   GRP2 - FTR
GRP1 - FTR
<----PAGE BREAK---->
 
THIS happens when the sum of GRP 2 + GRP3 is able to fit on a page without GRP1 but not when GRP1 is included.
 
I could turn off KEEP TOGETHER for GROUP 1 but then I will end up with Orphaned GRP 1 Footer setcions. 
 
 
And so the problme is how to get dynamic KEEP TOGETHER logic that works when the amount of data in all the groups below it can fit on the same page as Group 1 HDR and that will ignore KEEP TOGETHER when the amount of the data in all the Groups below it is more then will fit on the same page as the Grp 1 Header.  When that happens you split up the data in Groups 2 & 3 across multiple pages and re-print the Group Header at the top of each page until the group is complete.
 
 
This is very difficult to epxlain in words bvut very easy to see in the report so please let men know if more detail is neded.
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 18 Nov 2009 at 4:11pm

Have you tried turning off Keep Together for Group 2 only?  Other than that, I can see no way around this issue.  It's one that we all seem to struggle with at one point or another.

-Dell
IP IP Logged
YSLGuru
Newbie
Newbie


Joined: 18 Nov 2009
Location: United States
Online Status: Offline
Posts: 6
Quote YSLGuru Replybullet Posted: 24 Nov 2009 at 12:18pm
Originally posted by hilfy

Have you tried turning off Keep Together for Group 2 only?  Other than that, I can see no way around this issue.  It's one that we all seem to struggle with at one point or another.

-Dell
 
Thanks for ths suggestion but unfortunately if we turn of KEEP TOGETHER on Group 2 then we end up with Group 2 Footer sections appearing at the top of a page by itself when what shoudl happen is that the Group 3 before it should go to the next page and then print group 3 followed by Group 1's footer.  That is except where the next section is the Group 1 footer. 
 
It's really a difficult issue because what the owenrs (those requesting the reports) want is something that requires formula that includes judgement call logic; something humans can do but not computers.  Know what I mean?
 
 
In all honesty the more I think about thsi the more I think its' an impossible feat anyway because there are 2 many possible combinations of variables to logically handle all without making a judgement call.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.000 seconds.