[Demo] Extracting text from RTF without visual components

Demos, code samples. Only questions related to the existing topics are allowed here.
Post Reply
Sergey Tkachenko
Site Admin
Posts: 13208
Joined: Sat Aug 27, 2005 10:28 am
Contact:

[Demo] Extracting text from RTF without visual components

Post by Sergey Tkachenko » Mon Aug 25, 2008 3:29 pm

This demo uses TRichView's RTF parser to extract a plain text from RTF files without creating TRichView or another visual control:
http://www.trichview.com/support/files/textfromrtf.zip

It uses OnNewText event of parser.
If you want to extract Unicode text, use OnNewUnicode text instead.
If you want to extract pictures, use OnNewPicture event.

PS: RTF parser is an internal class for TRichView, it is not documented.

2008-Dec-11: updated for compatibility with TRichView 11


Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest