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
How can I copy all text from DBSRichViewEdit to SRichViewEdi
-
- Posts: 184
- Joined: Wed Jan 18, 2012 6:22 pm
-
- Site Admin
- Posts: 17572
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Code: Select all
Stream := TMemoryStream.Create;
DBSRV.RichViewEdit.SaveRVFToStream(Stream, False);
Stream.Position := 0;
SRV.Clear;
SRV.RichViewEdit.LoadRVFFromStream(Stream);
SRV.Format;
Stream.Free;