Brendan, I managed to do that. I took a little longer than expected, but it is great now. I have another question: what would be the right/easier approach to export as PDF ?? By the way, I would like to buy the new version Thanks a lot -- Dr. Alexandre Amato Cirurgia Vascular e Endovascular | Prof. Assist. de Cirurgia Vascular da Universidade de Santo Amaro Amato Consultório Médico: www.amato.com.br | tel: (11) 5051-0233 On 16/06/2010, at 15:03, Brendan Murphy wrote: > Dr. Alexandre Amato wrote: >> You understood exactly what I am doing, and That's exactly what I need >> I tried that many ways, but couldn't manage to figure out how to do >> that. >> I hope I am not bothering too much, but would you mind showing me an >> example ??? > > As a side note, your original algorithm would not work. The actual > text you see in the display is encoded using base 64 in the XML in > order to protect the the XML stream from side effects of binary > data (via UTF-8). So you would have to decode each style run, > replace the target text, rencode the text and insert it back into > the XML stream. Oooo...ouch...ugly! > > Go to page 26 in the User Guide ("Accessing the Text") and you > will see an example of how to step through the paragraphs. There > are a couple of ways to actually manipulate the text, but this > section in the User Guide will get you started. > > FTC Website: http://www.truenorthsoftware.com/formattedtextcontrol > Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev > List Archive: www.freelists.org/archives/ftcdev > Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in > the subject field. > > > FTC Website: http://www.truenorthsoftware.com/formattedtextcontrol Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev List Archive: www.freelists.org/archives/ftcdev Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in the subject field.