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

delete part of a text

edited October 2004 in General
is it possible to delete part of a text when i want to print.

exemple :

the name of the dbtext is : 'repair of: machine'

I want that i print de report only showme the text 'machine'. The text '
repair of' not print on the report.

how have it to do ?

Comments

  • edited October 2004
    Hi Dani,

    The best place to take control of the text is inside the
    DetailBand.BeforePrint event. Using this event you could retrieve the text
    from the datapipeline, truncate it, and then assign it to a TppLable or
    TppVariable located inside the detail band. To gain access to the text from
    the database use something like the following...

    lsText := Report.DataPipeline['myField'];

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