trichview.com

trichview.support




Re: Insert a rtf text into a rtfeditor


Return to index


Author

Message

Sergey Tkachenko

Posted: 07/07/2004 21:44:01


InsertRTFFromStreamEd inserts RTF at the position of caret.

This is an editing-style method (see note in the help file), it must be

called for formatted document, so the quoted code has a good chance of

crashing.


Use LoadRTF. Despite of its name, it does not clear document before loading.


> Hi, i've a problem, I've a richviewedit with some text and I've to append

a

> RTF text I've used InsertRTFFromStreamEd but this insert the text at the

> begin of editor and not at the end.

>

> A little example

> FBsMRVSummary.RVEDBEditor.AddNL('FirstLine',1,0)

> FBsMRVSummary.RVEDBEditor.AddNL('Second line',1,0)

> oStreamRtF:=TStringStream.Create(sRTFText);

> FBsMRVSummary.RVEDBEditor.InsertRTFFromStreamEd(oStreamRtF);

> oStreamRtF.Free;

>

> What can I do?

>

> Thanks

>

>






Powered by ABC Amber Outlook Express Converter