Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

Section style subreport not from the new page...

edited November 2003 in End User
Hi,
I have a section style subreport in my summary band.
How can I print it on the same last page of the main report if there is
still enough space left?
As for now my subreport always prints on the new page despite the fact that
it could easily fit in the blank space of the last page of the main report.

Thank you,
MB.

Comments

  • edited November 2003
    Hi Moisey,

    A Section style Subreport by definition will start a new page when it is
    generated on a report. Try using a Child Subreport with its KeepTogether
    property set to True.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2003
    Yes, it does the trick, but unfortunately the header and footer of the main
    report keep appearing on the pages where only subreport's unformation should
    be printed.
    Can I somehow prevent it?

    Thank you.
    MB.

  • edited November 2003
    Hi Moisey,

    The Header and Footer bands act as PageHeader and PageFooter bands so they
    will reprint on every page unless they are suppressed. I would suggest
    using the Report.OnStartPage to toggle the visibility of these bands if a
    subreport is on this page.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2003
    Hi,
    Ok, but how do I do see "if a subreport is on this page", in order to
    control bands visibility? Moreover I need to hide header bands only on those
    pages that are used only for subreport information, otherwise I need to show
    the header...

    Thank you,
    MB.

  • edited November 2003
    Hi Moisey,

    Try creating a flag and setting it in either the OnPrint or OnStartPage of
    your subreports. Then using this flag value, you will be able to know if a
    subreport is present on the current page, and toggle the visibility of the
    header and footer bands accordingly.

    --
    Best Regards,

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