Re: How to hide group-header dynamically

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



any suggestions?

"massimo" <nospam@xxxxxxxxxxx> schrieb im Newsbeitrag
news:%23M5rUiPFGHA.3120@xxxxxxxxxxxxxxxxxxxxxxx
> 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
>


.