Home General

Help with Subreport's Title reprinting on each page

edited September 2011 in General
Hi,

I have designed a report which includes a Subreport int he Detail band
of the main report.

The subreport contains both a Title Band, and a Detail Band. The title
band contains the field labels at the top for the data that is populated
within the detailed band.

The detailed band goes for more than one page. I would like the title
band to re-print at the top of each page, but can't figure out how to do
this. (I tried setting a Header band instead on the subreport, but this
didn't print at all).

The subreport is a ppChild. Can someone please advise?

Thanks & Regards

Adam.

Comments

  • edited September 2011
    Hi Adam,

    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.

    I suggest using the GroupHeader/GroupFooter band(s) for you needs. If
    you need to repeat the header when a page breaks then then you can
    create a group and set Group.ReprintOnSubsequentPage to True.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2011
    Hi Niko,

    Thanks for that - I will give it a go.

    I was just wondering if there might be a possibility to be able to use
    page headers / footers on subbands to be able to implement this
    automatically in future?

    Either that, or a 'Reprint on new page' option in the titleband?

    I would imagine there would be a number of instances where users would
    want a title repeating itself if the subband uses multiple pages for
    it's output.

    Thanks & Regards

    Adam.

  • edited September 2011
    Hi Adam,

    Thanks for your feedback. The dynamic nature of a child style subreport
    makes the addition of a page header/footer extremely messy. The fact
    that this style subreport can span multiple pages, just half a page,
    start in the middle of a page after another one ends, etc. makes the
    implementation of such bands very difficult. This is why page
    header/footers are restricted to section subreports and the main report.

    Best Regards,

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