Page 1 of 1

How can I copy all text from DBSRichViewEdit to SRichViewEdi

Posted: Mon Apr 09, 2012 11:59 pm
by alexandreq
Hello Sergey,

I have a DBSRichViewEdit and I want to copy all the text, image, etc to a SRichViewEdit1. How can I do this?

thanks
Alexandre

Posted: Tue Apr 10, 2012 7:08 pm
by Sergey Tkachenko

Code: Select all

Stream := TMemoryStream.Create;
DBSRV.RichViewEdit.SaveRVFToStream(Stream, False);
Stream.Position := 0;
SRV.Clear;
SRV.RichViewEdit.LoadRVFFromStream(Stream);
SRV.Format;
Stream.Free;

Posted: Tue Apr 10, 2012 8:25 pm
by alexandreq
Thanks Sergey