SaveRVFToStream problem (TRichView 1.9.11)

General TRichView support forum. Please post your questions here
Post Reply
dpbug
Posts: 6
Joined: Sun Nov 06, 2005 9:14 am

SaveRVFToStream problem (TRichView 1.9.11)

Post by dpbug »

i find a problem. rv1 can show the content of file, but rv2 show nothing !
why? how can i do it?

this is the problem code:

procedure TForm1.Button1Click(Sender: TObject);
var
s: TMemoryStream;
begin
s:= TMemoryStream.Create;
rv.LoadRVF('c:\tmp.rvf');
rv.Format;

rv.SaveRVFToStream(s, false);

rv2.LoadRVFFromStream(s);
rv2.Format;
end;
Michel
Posts: 92
Joined: Fri Oct 14, 2005 2:56 pm
Contact:

Post by Michel »

You are most likely missing
s.Position := 0;
right before the rv2.LoadRVFFromStream(s) line.
Michel
Post Reply