Suppress page header when subreport’s group header appear

crystal-reports

there!

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

  • Main report:
    • 2 page headers
    • 2 subreports in details, each in separate section
    • grouping by one field
  • sub reports layout:
    • report header section
    • details header section
    • 4 groups, in the 4-th I have header
    • report footer section (suppressed)

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.

Best Answer

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.

Related Topic