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

Setting a Fixed Position for a SubReport

edited February 2005 in Subreports
Hi,

I have a main report which has a subreport in the title band. This
subreport can shrink or grow depending on what data is brought back from a
query. I also have a number of subreports in the detail section of the main
report (only the first subreport appears on the first page). Now what I
want to do is set it up so that the 1st subreport in the detail band always
appear in the bottom section of the report's first page (ie. fixed position)
rather than move up or down based on the subreport in the title band.

How can I achieve this?

Thanks,
David.

Comments

  • edited February 2005
    Hi David,

    If you create a static height detail band (i.e. DetailBand.PrintHeight :=
    phStatic), you can size your detail band to a given size, then position your
    subreport anywhere you would like on the page. Unfortunately if you are
    using a dynamic height detail band, this is not possible and you will need
    to either use a group footer or page footer band to hold the subreport,

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2005
    Nico,

    Thanks for your reply. Unfortunately I cannot use the report footer band
    as I only want the subreport to print out on the very first page. The
    detail band is also a problem as I have other subreports which print after
    this particular report in the details section of the main report.

    Do you have any other possible solutions.

    Thanks,
    David.

  • edited February 2005
    Hi David,

    You might try separating your report out into two Section Style subreports.
    For instance, your main report would only have a detail band with two
    section subreports in it. Inside the first section subreport would be all
    your first page information as well as your first subreport positioned
    correctly on the first page. Then the second section subreport would
    contain the rest of your report. Each section subreport will start and
    print on its own page keeping the two separate.

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