How can I copy all text from DBSRichViewEdit to SRichViewEdi

General TRichView support forum. Please post your questions here
Post Reply
alexandreq
Posts: 184
Joined: Wed Jan 18, 2012 6:22 pm

How can I copy all text from DBSRichViewEdit to SRichViewEdi

Post 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
Sergey Tkachenko
Site Admin
Posts: 17572
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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;
alexandreq
Posts: 184
Joined: Wed Jan 18, 2012 6:22 pm

Post by alexandreq »

Thanks Sergey
Post Reply