trichview.com

trichview.support.examples




Re: How to use Rvf of  richviewEdit into richview ?


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/21/2004 20:29:42


You can copy document via memory stream:


// copying from rv to rve


var Stream: TMemoryStream;


Stream := TMemoryStream.Create;

rv.SaveRVFToStream(Stream, False);

Stream.Position := 0;

rve.LoadRVFFromStream(Stream);

rve.Format;

Stream.Free;


Both rv and rve must have "Allow adding styles dynamically" option (right

click them in Delphi, choose "Settings" in the context menu and set this

option)

or they must be linked to the same RVStyle (or have a compatible collection

of styles).


PS: please post questions in trichview.support group





Powered by ABC Amber Outlook Express Converter