2

I have a report made with Crystal Report 10 that is structured like this:

(Note that this example has 1 page with Value A and 2 pages with Value B)

PAGE 1:
Group Header Value A
(Sub)Group Header with some headings for Group Header Value A
Detail section with values for Group Header Value A

PAGE 2:
Group Header Value B
(Sub)Group Header with some headings for Group Header Value B
Detail section with values for Group Header Value B

PAGE 3:
Group Header Value B
(Sub)Group Header with some headings for Group Header Value B
Detail section with values for Group Header Value B

My problem is that when I fill it with data, it displays as follows:

(The Group Header Value A displays also on PAGE 2, together with Group Header Value B)

PAGE 1:
Group Header Value A
(Sub)Group Header with some headings for Group Header Value A
Detail section with values for Group Header Value A

PAGE 2:
Group Header Value A
Group Header Value B
(Sub)Group Header with some headings for Group Header Value B
Detail section with values for Group Header Value B

PAGE 3:
Group Header Value B
(Sub)Group Header with some headings for Group Header Value B
Detail section with values for Group Header Value B

The PAGE 2 should only display Group Header Value B.

How can I stop Group Header Value A from displaying on PAGE 2?

Thanks

POST-EDIT: I actually found a solution to this issue, although since it may not look like a proper solution, I would like to hear of other ways to solve this issue.

My solution is to do as follows: 1. right-click on the Group Header and select "Section Expert". 2. in "Section Expert", tick the checkbox "Underlay Following Sections". This will place any subsequent header on top (on the z-axis) the first groups headers. 3. make sure that the field used for displaying the Group Header data has a black background (and e.g. white text). This way the new subsequent groups names will fully cover the first groups name.

4

2 回答 2

2
You have to move GroupHeader into the page header section.
but be sure group must be there. only group header moves to the page header section.
then right click on object and edit formula for display string property.
then put this condition on formula editor.

if ({GroupFiledName} = next ({GroupFiledName}))
then
// if you required group header on each page
{GroupFiledName}
// if you not required group header on each page
''
else
 next({GroupFiledName})

try it.. it worked for me.
于 2014-05-07T06:34:23.773 回答
1

您必须GroupHeaderSection为 subHeader 取值。并抑制GroupHeaderSectionWith 公式DRILLDOWNGROUPLEVEL = 0。在 GroupHeaderSection 中,您可以放置​​子报表的标题详细信息。因此,您可以获得不同的标题

于 2013-05-27T07:05:44.657 回答