Getting text as rtf

General TRichView support forum. Please post your questions here
Post Reply
nickg

Getting text as rtf

Post by nickg »

If I want to use TRichView in Unicode mode, is there a way to get the text and it's rtf formatting codes so I can load the whole thing into a widestring, or an OLEVariant.

No objects or paragraph formatting is required, just font name, style, color, and size. And the text of course :-)

TIA Nick
Sergey Tkachenko
Site Admin
Posts: 17310
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You can use SaveRTFToStream method to save RTF in TStringStream, then get a string from Stream.DataString
nickg

Getting rtf text from TRichView

Post by nickg »

Many thanks Sergey, I'll try that.

Regards Nick
Post Reply