copy data between two TRichViewEdits
Posted: Wed May 21, 2008 8:32 am
Hi Sergey,
I tried to copy between two richviewedits but did not have much luck.
1) tried to use stream but second RichViewEdit2 was blank
stream := TMemoryStream.Create;
try
RichViewEdit1.SaveRVFToStream(stream, false);
stream.Position := 0;
RichViewEdit2.LoadRVFFromStream(stream);
RichViewEdit2.Format;
finally
stream.Free;
end;
2)RichView.assign won't work
Could you help please?
I tried to copy between two richviewedits but did not have much luck.
1) tried to use stream but second RichViewEdit2 was blank
stream := TMemoryStream.Create;
try
RichViewEdit1.SaveRVFToStream(stream, false);
stream.Position := 0;
RichViewEdit2.LoadRVFFromStream(stream);
RichViewEdit2.Format;
finally
stream.Free;
end;
2)RichView.assign won't work
Could you help please?