Roman
Roman

Reputation: 575

Suppress page header when subreport's group header appear

there!

I'm stuck with suppressing page headers in Crystal Reports. Report layout:

What I'm trying to aim is to hide page header when group header is appearing.

I tried to use shared variables: I set it to true in subreport's group header, to false in subreport's footer section and use it as condition in page header on the main report. But it doesn't work and it prints two headers: page header and group header.

Any ideas would be appreciated, thanks!

Report example, on 8 page is example of the problem when two headers appear.

Upvotes: 0

Views: 6001

Answers (2)

Roman
Roman

Reputation: 575

So, I have found solution of my problem. It is very simple: In the sub report for group I insert one header in the group header and total header in the group footer. Then I go to Group Expert-> My Group -> Options -> Options tab -> Set "Repeat Group Header On Each Page" to true. And remove page header from Main Report.

Upvotes: 2

Siva
Siva

Reputation: 9101

Create a shared variable in sub report and assign a value to it and use the same variable in sub report and main report.

In sub report

shared numbervar a;
a:=1

in group header supress condition

Shared numbervar a;

if a=1
then true
else false

in main report page header superss section

Shared numbervar a;

if a=1
then false
else true

Upvotes: -1

Related Questions