Headers/footers in sub reports
I have a main report that only contains a details band (and nothing
else). This details band contains two sub-reports.
I have a header and footer in each of the 2 sub-reports but neither of
them display on Print Preview or Print. The Header and Footer bands are
set to visible on the two sub-reports.
Can someone help please?
Thanks,
Tim.
--- posted by geoForum on http://delphi.newswhat.com
else). This details band contains two sub-reports.
I have a header and footer in each of the 2 sub-reports but neither of
them display on Print Preview or Print. The Header and Footer bands are
set to visible on the two sub-reports.
Can someone help please?
Thanks,
Tim.
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
Tech Tip: Subreport header/footer bands do not print for
Child type subreports.
------------------------------------------------------------------
For a subreport set to pbChild, the header/footer are not supported.
A child type subreport prints on its parent's page space and
therefore behaves more like a memo.
Options:
1. Use Title/Summary band.
2. Use GroupHeader/GroupFooter. If you need to repeat the header
when a page breaks then then you can create a group and
set StartNewPage to True.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
are
Thank you Nico, it works like a dream.
--- posted by geoForum on http://delphi.newswhat.com
I would like to display my main report's header on every page of the report.
This works as long as I don't include a sub-report in the header. If i
include sub-reports in my header of main report. I lose the header on
everypage.
The sub-reports I include in the header of the main report may include
groups, but not always.
I tried using Nico's Tech Tip.
Where do I use the GroupHeader/GroupFooter? On the main report or the
Sub-reports?
What type of group do I create (Data Field or Custom Field)???? I could
possiblly already have groups in my sub-reports and grouping it another way
could screw things up.
Thanks
Shane
The tip I posted refers to using headers and footers inside a child
subreport, not subreports inside headers/footers.
Which version of ReportBuilder are you using? In my quick testing with the
latest version, I was able to successfully place a subreport inside the
header band and the subreport information was displayed at the top of each
page of the report.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
move to it. Not sure when we will be able to.
Shane
This should still work with RB 7.04. Try creating a simple minimal report
with a subreport inside the header band and see if the subreport information
shows up on every page.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com