Remove Header Once Report Displays?


S

scott04

Hi All,

I am trying to figure a report issue. I have a report that utilizes the
subreport feature. When the subreport loads it is ok but once the subreport
goes onto a 2nd page the headers are all out of wack. The header contains
the main report which is quite confusing since fields are not the same. Can
my second page only contain the subreport headers? Thanks.
 
Ad

Advertisements

D

Duane Hookom

It isn't clear what you mean by "The header contains the main report which is
quite confusing since fields are not the same". A subreport contains nothing
from the main report. When you mention "header", please be specific since
there are potentially 12 "headers" in a report (excluding those from
subreports).

There are ways to cancel the display of main report Page Headers on all but
the first page. If you want this, you are probably better off just using the
Report Header. You can also get a pseudo Page Header in a subreport by
creating a top level sorting and grouping section on a constant expression
like:
=1
Display this groups header and set its Repeat Section property to Yes.
 
S

scott04

Duane,

Sorry about that. My reports page header is being displayed on the
subreport. I have utilized the pseudo header in subreport of haveing a
header =1 but i still cannot get the report page header to be ignored in
subreport. I have set the repeat section property on the subreport and it
does print on pages following but it has the report page header then my sub
report pseudo header. Any thoughts as reports aren't my strong point.
Thanks!
 
D

Duane Hookom

"My reports page header is being displayed on the subreport." is incorrect.
Your main report page header is displayed in the main report, not the
subreport.

Did you try remove the main report's Page Header section and use the main
report's Report Header?

I don't think there is an easy way to hide a main report Page Header section
based on a subreport continuing on a new page of the main report.
 
S

scott04

I did try that it does work for the purposes of removing the headers on the
subreport page since now it only shows on first page. I was just checking to
see if there was some code i can use that when the subreport appears that
page and the following pages do not have the page header if i went that
route. The header is kind of necessary for the pages up until the subreport
starts.
 
Ad

Advertisements

S

scott04

Duane,

I think the group header my be the best route to semi solve this problem. I
appreciate all of your suggestions.

Scott
 

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