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

Stretch-property depending on a condition, how ?

edited May 2002 in General
Hi,

I have a report with different groups. Within the detail band there is a
TppMemo Component (df_xx).

I try to make the Stretch-property depending on a condition as follows:

OnPrint:

if ppReport1.DataPipeline.GetFieldAsString('xx') = something then
df_xx.Stretch:=True else df_xx.Stretch:=False;

But I cannot see any change in the behaviour. It always remains at the
desingtime value.

What is wrong with my code ?

Thanx for help ...

Thomas

Comments

  • edited May 2002
    There are two things to check initially. First make sure that the OnPrint
    event handler is a assigned (that it is firing at all.) If so, also make
    sure that the first part of the if statement (df_xx.Stretch := True) is
    being hit by placing a break point on it.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

  • edited May 2002
    > There are two things to check initially. First make sure that the OnPrint

    yes, checked


    yes, checked too


    Thomas



    "Alexander Kramnik (Digital Metaphors)" schrieb
  • edited May 2002
    In that case it is also possible that the memo is actually stretching but it
    is covered up by another component. If you have another component directly
    following the memo, set it to shift relative to the stretching memo.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

  • edited May 2002
    I could not solve it. But I found a workaround. Thank you for your
    assistance ...

    Thomas


    "Alexander Kramnik (Digital Metaphors)" schrieb
This discussion has been closed.