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

I want subreport start on a new page

edited September 2003 in Subreports
I place a subreport component in the group footer band and I want the
subreport print on a new page (like place a pagebreak in MSWord before
subreport component), Is there any method to do this?

thx!

Comments

  • edited September 2003
    Hi Kei,

    Set the Subreport.PrintBehavior proeprty to pbSection for this subreport.
    This will force the subreport to always start on a new page.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited September 2003
    I have seen the new group that pbsection subreport use z-order to determine
    print order, but even I use send to front, send to back, the pbsection
    subreport always print first, also, is the z-order rule also apply to
    between subreport and region (not between subreport and subreport)?

    Thx!

  • edited September 2003
    Hi Kei,

    You should only place section style subreports in one band. There should be
    no other controls in that band. There is no guarantee that those other
    controls will generate correctly, because the section subreport forces the
    engine to start a new page when the subreport gets a chance to generate.
    What you can do is place the other controls in a empty section subreport so
    that you can control the Z order using only the subreports. This way your
    empty section subreport will print before or after the other section
    subreport based on the Z order.

    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.