* StartRender/EndRender support (enable transaction control) for bug ID #0033496

git-svn-id: trunk@57565 -
This commit is contained in:
michael 2018-03-27 07:55:22 +00:00
parent 46ca509e85
commit 9e16784c7e

View File

@ -1125,10 +1125,15 @@ Var
begin
if not ValidateReport then
exit;
FReport.RunReport;
F:=TFPreportPreviewExport.Create(Self);
FReport.RenderReport(F);
FReport.ClearPreparedReport;
FReportDesignData.StartRender;
try
FReport.RunReport;
F:=TFPreportPreviewExport.Create(Self);
FReport.RenderReport(F);
FReport.ClearPreparedReport;
finally
FReportDesignData.EndRender;
end;
end;
procedure TFPReportDesignerForm.APreviewUpdate(Sender: TObject);