trichview.com

trichview.support




Re: Transfering text


Return to index


Author

Message

Sergey Tkachenko

Posted: 06/19/2003 16:17:53


The code for copying one rv to another:


var Stream: TMemoryStream;


Stream := TMemoryStream.Create;

rvsource.SaveRVFToStream(Stream, False);

Stream.Position := 0;

rvdest.LoadRVFFromStream(Stream);

rvdest.Format;

Stream.Free;


(As for tables, they have methods SaveToStream and LoadFromStream, but the

code above will copy all tables automatically)




>

> I need to do some text transfering from one RichView Edit to another, i.e.

> I read a text from first RV, do analyzing of it (translation) and paste it

> in another(second) RV. Objects other then text i simply copy. The problem

> is with tables. Is there a simple way to easily transfer all of the table

> formations and analyzing text in it?





Powered by ABC Amber Outlook Express Converter