How to hide group-header dynamically

M

massimo

Hi to all,
I have a report, that will be printed on max. 3 pages.
The first and second page should contain the group-header and the detail
section.

The third page, if the detail section is not printed, should contain only
the footer-page.
The group-header (MyGroupHeader1), in this case, must not appear.

I tried with this code, but doesn't work:

- Page-header onFormat:
CounterDetail = 0


- Detail-Section onFormat:
CounterDetail = CounterDetail+1


- Page-Footer onFormat:
If CounterDetail > 0 Then
MyGroupHeader1.Visible = True
Else
MyGroupHeader1.Visible = False
End If


Thanks for any assistance,
Massimo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top