trichview.com

trichview.support




Re: The most efficiant way to...


Return to index


Author

Message

Sergey Tkachenko

Posted: 03/06/2002 21:06:55


Hi,


If your document does not contain tables and controls (only text and

images), the most efficient way is:


richviewedit2.AppendFrom(richviewedit1);

richviewedit2.Format;


Otherwise, you need to use a stream:


var Stream: TMemoryStream;


Stream := TMemoryStream.Create;

richviewedit1.SaveRVFToStream(Stream, False);

Stream.Position := 0;

richviewedit2.InsertRVFFromStream(Stream, richviewedit2.ItemCount);

Stream.Free;

richviewedit2.Format;



> hi,

>

> to copy all content from richviewedit1 and append it at the end of

> richviewedit2 or richview1 with tags, colors, etc, how i can do please?

thx;

>

>







Powered by ABC Amber Outlook Express Converter