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

Forcing SubReports to Start on New Page

edited September 2004 in Subreports
I have one main report which has four subreports in the detail section of
the main report as shown below:

Main Rpt
Detail Band
SubRpt1
SubRpt2
SubRpt3
SubRpt4

Each of the subreports shift relative to each other in the numeric order
above ie. SubRpt2 shifts relative to SubRpt1 etc.
If any of the above SubReports 1 - 4 contains any data I want them to start
on the new page e.g. if SubRpt 1 does not have any data but SubRpt 2 - 4 do,
then SubRpt 2 should start on a new page with SubRpt 3 and 4 shifting
relative to SubRpt 2.


Thanks

Comments

  • edited September 2004

    Try placing another subreport, lets call it SubRpt0, above SubRpt1. Use this
    subreport to generate a page break. Set the TitleBand.NewPage property to
    true and size the height of each band to 0.

    Set SubRpt1 to shift relative to SubRpt 0.

    Note that if you need to set any of the subreports to be Visible of False,
    then you will need to re-assign the chain of ShiftRelativeTo relationships
    to include only the Visible subreports.



    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.