trichview.com

trichview.support




Re: Getting RTF text from TRichviewedit


Return to index


Author

Message

Peter Harris

Posted: 12/19/2004 22:13:19


I have partially answered my own question,  I think.   - I have used

SaveRTFToStream and then reloaded it into a TMemo which shows the RTF tags.


Is there an inbuilt property that achieves this?


Here is my code:


ms :=TMemorystream.Create;

ms.Position:=0;

RichViewEdit1.SaveRTFToStream(ms,false);

ms.Position:=0;

memo1.Lines.LoadFromStream(ms);

ms.Free;


Peter


"Peter Harris" <peterharris@doctors.org.uk> wrote in message

news:41c5cd6a$1@support.torry.net...

> How can I get the text including RTF tags from a TRichviewedit control?

> The only way I have managed so far is to save it and reload it as a text

> file.

>

> Is there a more elegant way?

>

> Peter Harris

>





Powered by ABC Amber Outlook Express Converter