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

Why no ShiftRelativeTo property in ppLabel and ppDBText components?

edited August 2005 in General
Hi,

I placed a TppDBMemo (which will print flat text data, no RichText)
component on the detail band. Initial height is set to 15 so atleast 1 line
will print and Stretch is set to True. Depending on how much lines the memo
contains the component will be stretched downwards. The problem is now when
i place a regular TppDBText or TppLabel in the same band at the same X
offset and '1 line' below the TppDBMemo component. When printed and
TppDBMemo component only contains 1 line of data everything is ok but when
it has 2 lines of data the second line from the TppDBMemo and the TppDBText
placed below will overwrite eachother...

So now i have to use TppDBMemo components for regular non memo fields when
placing below TppDBMemo components with stretch = true so i can use its
ShiftRelativeTo property...

Any other way to do this bc i assume using alot of TppDBMemo components will
slow printing down.

Greetings,
Filip Moons

Comments

  • edited August 2005
    Hi Filip,

    Only report components that descend from TppStretchable have the ability to
    shift relative to another stretchable component. If you need
    non-stretchable components to shift relative to a stretchable one, you can
    place them inside a TppRegion, then set the region's ShiftRelativeTo
    property.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2005
    > Only report components that descend from TppStretchable have the ability
    to

    I'm sorry but that doesn't make sence.


    For reports who can't be changed by the end user it's ok but reports which
    could be changed by the end user this approach is too far fetched. Its too
    complicated, the best i expect from our average end user is that they can
    launch explorer or they can setup a shortcut, that's it. You guys must have
    very smart end users.
This discussion has been closed.