I have an application with portions of RVF in a database, I need to merge them in a RV.
I've added two Helper for that
Code: Select all
procedure TCustomRichViewEditHelper.InsertField(Field: TField);
var
Blob: TStream;
begin
Format(); // required by InsertRVFFromStreamEd
Blob := Field.DataSet.CreateBlobStream(Field, TBlobStreamMode.bmRead);
try
InsertRVFFromStreamEd(Blob);
finally
Blob.Free;
end;
end;
procedure TCustomRichViewEditHelper.AppendField(Field: TField);
var
Blob: TStream;
begin
Blob := Field.DataSet.CreateBlobStream(Field, TBlobStreamMode.bmRead);
try
InsertRVFFromStream(Blob, ItemCount);
Format();
finally
Blob.Free;
end;
end;
Regards