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

Problem with lines and ShiftWithParent

edited October 2002 in Subreports
Hi

I have a detail band with dynamic height containing one row of controls and
a ppMemo beneath. The ppMemo gets loaded and resized in BeforeGenerate.
There are several vertical lines with ParentHeight=True and a horizontal
line along the bottom.

If the horizontal line has ShiftWithParent=False then all is well until the
memo causes the band to grow and the horizontal line goes right through it.

With ShiftWithParent=True the line stays nicely at the bottom of the band
but the vertical lines stop at a level equal to the bottom on the row of
controls.

Can we get round this?

Regards
Paul

Comments

  • edited October 2002

    1. Use Band.BeforePrint to load the memo and set the size. (BeforeGenerate
    is too late).

    2. ShiftWithParent is a very limiting propery. If you cannot get
    ShiftWithParent to work a given configuration, then place the static
    component (such as the Line) inside a Region. Use the Region.ShiftRelativeTo
    property to establish the relationship directly with the Memo.


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

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