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

Report Tree Order

edited November 2005 in Subreports
In a Post of Nico (6/Dec/2004) i've found this reply.
I have been trying to do this but the z-order doesn't change.
I can control the order on the page by the Shiftrelative property, and the
report works fine, but the z-order doesn't reflect the actual report-order,
and while designing this is complex, as this is a report with over 20
subreports and a tree of 6 levels deep.


Hi Jeff,

The order in which the subreports print is determined by the z-order of the
subreport objects on your report. To adjust the z-order you can use the
"Bring to Front", "Send to Back" options by right clicking over the
subreports in the designer. To see the actual z-order, open the Report Tree
by selecting the View | Toolbars | Report Tree main menu option in the
designer.

--
Regards,

Comments

  • edited November 2005
    Hi Harry,

    The z-order determines the order in which the subreports print, not show up
    on the report. If you place ShowMessage commands inside the
    TppSubreport.OnPrint events of each of your subreports, you will see this is
    the case. I'm a bit unclear about what you are trying to accomplish. For
    stretching (dynamic) subreports, it is necessary to set the ShiftRelativeTo
    property in order to keep the subreports from overlapping. In this case,
    the z-order is changed to accommodate the desired shifting scheme. This is
    necessary to calculate the proper page spacing. Otherwise the subreports
    will print in the position you place them inside the band.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2005
    The only thing i would like to accomplish is to make the order in the IDE,
    in the Report Tree, Report Outline to reflect the real order that the
    subreports are printed.
    I have changed the order that the subreports are printed during the
    lifecicle of the report.
    But in the report tree this order stays as they were created.
    It's just a visual thing, everything works fine, i just wanted to changed
    this visual order.

  • edited November 2005
    Hi Harry,

    Unfortunately ReportBuilder cannot do this for you automatically. You will
    need to manually adjust the z-order of the subreports (using SendToBack and
    BringToFront) in order to visually see the subreport in the order that they
    will be printed. I will mark this down as a possible enhancement for a
    later release.

    --
    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.