trichview.com

trichview.support




Re: Saving and loading from stream


Return to index


Author

Message

Sergey Tkachenko

Posted: 05/15/2005 10:28:57


For example, copying from rv1 to rv2:


var Stream: TMemoryStream;


Stream := TMemoryStream.Create;

rv1.SaveRVFToStream(Stream, False);


Stream.Position := 0;

rv2.LoadRVFFromStream(Stream);

Stream.Free;


(in order to copy document properly, rv1 and rv2 must be either linked to

RVStyle with the same set of styles, or have "Allow adding styles

dynamically" option set (right click TRichView on the form in Delphi, choose

"Settings" in the context menu))



> I know, but i dont know how to do it. Ive tried but i cant get it to work.

I

> cant say im an expert in the area, so an example would help out alot!

> Thanks.

>





Powered by ABC Amber Outlook Express Converter