how to Save Item To stream?

General TRichView support forum. Please post your questions here
Post Reply
camelzsm
Posts: 2
Joined: Mon Mar 05, 2012 9:04 am

how to Save Item To stream?

Post by camelzsm »

for i:=0 to rve.RVData.ItemCount-1 do
begin
aa:=rve.RVData.GetItem(i);

xxstream.Clear;

aa.SaveRVF(xxstream,rve.RVData,i,aa.ParaNo,'xx',nil,false);

if xxstream.Size<>0 then
begin
showmessage(inttostr(xxstream.Size));
xxstream.SaveToFile('c:\aa.txt');
xxstream.Position:=0;
rve1.InsertRVFFromStream(xxstream,rve1.ItemCount);
rve1.Format;
end;
end;
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You can select the item and then save the selection. Why do you need saving a single item?
Post Reply