Exclude Report Header and Footer based on Section?

  • Thread starter Thread starter Jon22
  • Start date Start date
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.
 
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.
 
Back
Top