Hide PageHeader Controls if on same page as GroupHeader


G

Guest

Is it possible to hide certain controls in the Page
Header only on pages which also display a Group Header ?
 
Ad

Advertisements

M

Marshall Barton

Is it possible to hide certain controls in the Page
Header only on pages which also display a Group Header ?

If the group header is at the top of the page, you could use
the group footer (on the previous page) to make the page
header controls invisible and the group header to make them
visible.

It almost sounds like you might want to consider using the
group header section's RepeatSection property.
 
R

RC

I'm trying to do the same thing. Needs to be done
because the page header appears on top of the group
header, and the column headings need to be under the
group heading. My report is a bunch of statements to
clients, each client grouping shows the mailing address
so it folds into a windowed envelope. I have it somewhat
working by comparing the current client name to previous,
and in the OnFormat event of the Page Header, it either
hides or shows the column headings that then appear on
the following pages for that client. However, if I
preview, then print, the headings appear regardless of if
the previous formatting. THere must be something in
OnRetreat, but I can't seem to get it working.
 
Ad

Advertisements

M

Marshall Barton

RC said:
I'm trying to do the same thing. Needs to be done
because the page header appears on top of the group
header, and the column headings need to be under the
group heading. My report is a bunch of statements to
clients, each client grouping shows the mailing address
so it folds into a windowed envelope. I have it somewhat
working by comparing the current client name to previous,
and in the OnFormat event of the Page Header, it either
hides or shows the column headings that then appear on
the following pages for that client. However, if I
preview, then print, the headings appear regardless of if
the previous formatting. THere must be something in
OnRetreat, but I can't seem to get it working.

You can not count on the sections being processed
sequentially. So comparing a field with a value saved from
a previous section is not a valid way to do this (or
anything else either).

I think all you need to do is use the group footer section's
Format event to make the page header or some of its controls
invisible. The group header section's Format event can the
make them visible again.
 

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

Similar Threads


Top