trichview.com

trichview.support




Re: Copying part of the RichViewEdit to another


Return to index


Author

Message

Yernar Shambayev

Posted: 10/25/2004 17:17:55


Select the part of first RichViewEdit and write this code:


    MemStream := TMemoryStream.Create;

    try

      First_RichViewEdit.SaveRVFToStream(MemStream, True);

      MemStream.Position := 0;

      Second_RichViewEdit.LoadRVFFromStream(MemStream);

    finally

      MemStream.Free;

    end;


Note that properties of First_RichViewEdit and Second_RichViewEdit should

be the same.



"Peter Jordan" <[email protected]> wrote:

>

>Hello,

>

>I am newbie in the RichView component and I would like to know how can I

>copy part of the text including fonts, colors and styles from a RichViewEdit

>to another. I don't want to copy the entire text but just a part, half for

>example.

>

>Best Regards,

>

>Peter Jordan.





Powered by ABC Amber Outlook Express Converter