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

Problem with TppLabel

edited March 2004 in End User
I use a TppLabel to display some text which I generate at run time.

I have done the following:
The label is customized. The caption is a comma delimited text generated at
run time based on the selection made in a list box. I set the label.caption
with the text generated.

For the label I have set autosize to true and turned on the word wrap.

What happens is, the text wraps after every comma and is overwritten on top
of other text.

I have even tried to create a subreport for this particular label

Can anyone provide help on how to handle this. I have attached the report
sample.

Regards,
Chandra

Comments

  • edited March 2004

    Use TppMemo if you need to wrap text.

    example:

    myMemo.Lines.Text := 'put lots of text here and it will be wrapped';

    If you want the Memo height to automatically adjust its vertical height to
    accomodate the amount of text, then set

    myMemo.Stretch := True;

    If you have report elements below the Memo that need to shift their position
    vertically in response to the memo stretching its height, then you need to
    define a ShiftRelativeTo relationship. All of the stretchable components
    such as Memo, RichText, SubReport, and Region have a ShiftRelativeTo
    property. If you have labels below the Memo, then add a TppRegion to the
    report and set it to ShiftRelativeTo the Memo. Place the static labels
    inside the region.


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

    Best regards,

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