Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: RemainingGroups Keep together for a New page Group Post Reply Post New Topic
Author Message
newbie
Newbie
Newbie


Joined: 10 Jul 2007
Online Status: Offline
Posts: 29
Quote newbie Replybullet Topic: RemainingGroups Keep together for a New page Group
    Posted: 06 Sep 2007 at 12:28pm

Hi,

My report is having groups PH,GF4, GF3, GF2, GF1, PF. There is no details section.  GF4 is having summary columns. Each GF3 should print in a new page with its GF4 values. GF2 summaries should print at last details of GF3 when there is a change in GF2 value.

1st page  GF1, GF2
GF4  -------
GF4  -------
GF4  -------
GF3  Sum of all GF4

2nd page GF1, GF2 (Same values of last page)
GF4  -------
GF4  -------
GF4  -------
GF3  Sum of all GF4
GF2  SUM *** THIS SHOULD APPEAR WHEN THERE IS A CHANGE IN GF2 IN THE NEXT PAGE

3nd page GF1, GF2(NEXT VALUE)
GF4  -------
GF4  -------
GF4  -------
GF3  TEST Summaries

Could any one please let me know how to do this?

Thanks
VK

Confused
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 06 Sep 2007 at 4:52pm

I know there's been some discussion in the forums about avoiding subreports, but I think this is a situation where you're going to have to use them.  I don't see any other way to get the same GF3 and GF4 data on all of your pages.

Also, if you need the GF1 and GF2 data to print at the top of the page, you'll need to put it in the group HEADERS instead of the FOOTERS.

I suggest the following:

Group 1 - Put data in Header.
Group 2 - Put data in Header.
Group 3 - put data in Footer.  This will appear after all of the group 4 data.  Turn on "New Page After".
Group 4 - put data in header or footer as appropriate.
 
Create a formula: next({table.Group 2 Field})
 
This will get you all of the first page of your report.  For the next two pages:
 
Create 2 GF2 sections - a and b.
GF2a - Turn on "New Page After".  Add a subreport, linked to the Group 1 and Group 2 values, with the same tables and selection criteria as your first report.  In the Report Header put the values for Group 1 and Group 2 that you used to link to the main report.  Add groups for you main report Group 3 and Group 4 and set up your data how you want it to appear on your second page.
 
GF2b - Add a subreport as in GF2a, but link on your Group 1 value and the formula that gives you the next value for Group 2.  Turn on "New Page After" and in its formula button put "Not OnLastRecord" so that you don't get a blank page at the end of your report.
 
-Dell


Edited by hilfy - 06 Sep 2007 at 4:53pm
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.031 seconds.