Exclude Report Header and Footer based on Section?


J

Jon22

I have a subreport which is the only object in a particular group section of
my main Report. The visible setting of this section is set to True or False
based on an option selected in a form. Is there a way to have the Report
Header and Report Footer of my main Report not show up on the pages that this
subreport occupy when it is visible? Bearing in mind that this subreport
could take up any number of pages and start at different page numbers each
time. In other words I need a subreport within a parent report which ignores
the Header and Footer of it's parent report.
 
Ad

Advertisements

M

Marshall Barton

Jon22 said:
I have a subreport which is the only object in a particular group section of
my main Report. The visible setting of this section is set to True or False
based on an option selected in a form. Is there a way to have the Report
Header and Report Footer of my main Report not show up on the pages that this
subreport occupy when it is visible? Bearing in mind that this subreport
could take up any number of pages and start at different page numbers each
time. In other words I need a subreport within a parent report which ignores
the Header and Footer of it's parent report.

There is something wrong with what you are saying there. A
report's Report Header (and Report Footer) section only
appears once in the report.

The Page Header (and Page Footer) sections appear on each
page. And, a group header (not group footer) can be made
(via the RepeatSection property ) to appear on each page.

Assuming you meant to say Page Header, you can make it
visible or not by using line of code in an appropriate event
(subreport's Report Header Format event??) in your
subreport:
Parent.Section(3).Visible = False

If you do that, you should probably find a place
(subreport's Report Footer Format event??) to make it
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

Top