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

Sub-Report printing order

edited May 2007 in End User
Hi,

If I have two sub-reports on a report, both in the detail section.

Sub-report 2 was added after sub-report 1 but it appears above sub-report
on the report.

I have found that this setup will not print data for sub-report 2.

Is there a way of specifying which sub-report gets printed first.

Thanks for any help,

Dermot



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited May 2007
    Hi Dermot,

    Try setting the ShiftRelativeTo property of the second subreport equal to
    the first subreport. This will ensure that the second subreport stays below
    the first one.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2007
    Hi Nico,

    I have both sub-reports within regions and the region that is second from
    the top as you look at the report is set to shift relative to the region
    that appears first. The question I have is if the order that sub-reports
    are added to the report have any bearing on the order that they are printed.

    The net result I get is that neither of the sub-reports now print their
    data and I just get a number of blank pages at the end of the report. Also
    I have looked at the datasets for the sub-reports and they are returning data.

    Thanks again,

    Dermot




    --- posted by geoForum on http://delphi.newswhat.com
  • edited May 2007
    Hi Dermot,

    Yes, the z-order should determine which order each component prints in a
    report. You can use the SendToBack, BringToFront options to control the
    z-order of a component compared to another. The ReportTree will show the
    current order.


    This is not a known issue. Try simplifying the report perhaps by creating a
    new one with just the subreports and no event code present and see if the
    behavior persists.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2007
    Hi Nico,

    I removed the regions and added the sub-reports in directly and it seems
    to work fine now, thanks for your help,

    Dermot




    --- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.