Hello,
I have a application with 2 TRichViewEdit.
I write on the first.
When I click on a button I need to copy the content (with styles, ..) to the second richviewedit.
I try with:
richview2.assign(richview1) but it's don't work
I can save RTF file and load it on richview2 but I don't like that
Does it's exist a fucntion who copy all the content of a richview to an other richview ?
Thanks,
Robin
Copy content of RichView to other RV
A function like that:
Code: Select all
richview1.copyto(richview2)
I try with load/save stream from RVF
Then my second richview (yrvMessage) is always egual at ''
Code: Select all
try
stream := TMemoryStream.Create;
FrameMessage.rveDocument.SaveRVFToStream(stream, False);
mailType.yrvMessage.LoadRVFFromStream(stream);
mailType.yrvMessage.Format;
finally
FreeAndNil(stream);
end;
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Code: Select all
stream := TMemoryStream.Create;
try
FrameMessage.rveDocument.SaveRVFToStream(stream, False);
[color=red]stream.Position := 0;[/color]
mailType.yrvMessage.LoadRVFFromStream(stream);
mailType.yrvMessage.Format;
finally
FreeAndNil(stream);
end;
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: