Home Subreports

Headers/footers in sub reports

edited December 2008 in Subreports
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

Comments

  • edited December 2008
    ------------------------------------------------------------------
    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2008
    >------------------------------------------------------------------
    are

    Thank you Nico, it works like a dream.



    --- posted by geoForum on http://delphi.newswhat.com
  • edited January 2009
    I have a number of reports which have sub-reports in their headers.

    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
  • edited January 2009
    Hi 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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited January 2009
    Sorry, Im using 7.x. We are registered with 10.X, but we haven't made the
    move to it. Not sure when we will be able to.

    Shane

  • edited January 2009
    Hi 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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.