Storing reports in database
Hi all,
I need to store report templates in database, but how can I "override" saving routine in FR 3.15 ???
Milan Tomes
I need to store report templates in database, but how can I "override" saving routine in FR 3.15 ???
Milan Tomes
Comments
In the TfrxDesigner.OnSaveReport event I use this code:
function TfrmReportDesigner.frxDesignerSaveReport(Report: TfrxReport;
SaveAs: Boolean): Boolean;
var
memStream: TMemoryStream;
begin
memStream := TMemoryStream.Create;
frxReport.SaveToStream(memStream);
rdmo.dsetRelatorio.Edit;
TBlobField(rdmo.dsetRelatorioReportFile).LoadFromStream(memStream);
rdmo.dsetRelatorio.Post;
memStream.Free;
end;
Using a TMemoryStream, I place the Report in the stream, then load the stream in the db Blob Field.
Works fine.
Sorry by the deceit.
The code posted above works fine for reports ... no for templates ...
Sorry