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

Moving objects on titlepage down when pageheight changes

edited October 2009 in General
Hi,

I have some components on the title page, that i always want to appear a
certain distance from the bottom of the page. So when i change the size from
A4 to A3 they have to move down
I tried placing those objects in a region whose parentheight is true, anchoring
the objects to the bottom of the region, but that doesnt seem to work.

How can i get this to work?

greetings
Bas

Comments

  • edited October 2009
    Hi Bas,

    You need to anchor the objects (or the region containing the objects) to the
    bottom of the page as well. This way when the size of the page changes, the
    objects will remain the same distance from the bottom.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2009
    Hello Nico,

    That sounds a very reasonable suggestion .. if only i could find where i
    can anchor a component to a page :)
    If I anchor the region to atBottom (meaning it will move with tghe bottom
    of the title-band) nothing happens because whether i set te title band to
    dynamic or static.

    What am i doing wrong?
  • edited October 2009
    Hi Bas,

    Sorry, I did not know you were using the Title band. You are correct in
    that you can only anchor items to the bottom of a band or region. In the
    case of the title band, you will need to size the band the same size as the
    page in order to get the effect you are after.

    Alternatively, the footer band always prints at the bottom of the page
    regardless the page size so anchoring an item to the bottom of that band
    will ensure the correct behavior.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2009
    Hello Nico,

    I was afraid i had to solve it that way :-)

    The problem with your alternative suggestion is that you can only define
    one footerband, and in my case i only want those
    controls on the titlepage and not on every one.
  • edited October 2009
    Hi Bas,

    If you must use the Title band, you will need to create a report object loop
    and manually reposition each component inside the title band based on the
    size of the page. It should be possible to do this with a single routine
    call before the report is printed.

    http://www.digital-metaphors.com/rbWiki/Delphi_Code/Layouts/Report_Object_Loop

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