Execute PDF export in thread fail to work ReportBuilder 23.02
Before ReportBuilder 23.02, PDF report generation worked correctly in multi-threaded applications.
In ReportBuilder 23.02, the PDF report generation work for first time and freeze on 2nd time.
I found out that it is due to changes in unit ppPDFRendererGeneric.pas:
In ReportBuilder 23.02, the PDF report generation work for first time and freeze on 2nd time.
I found out that it is due to changes in unit ppPDFRendererGeneric.pas:
procedure TppPDFRendererGeneric.RenderToPDF; var lBitmap: TBitmap; lMetaFile: TMetaFile; lDrawImage: TppDrawImage; lRenderer: TppPDFRendererImage; begin if (DrawCommand.Height = 0) or (DrawCommand.Width = 0) then Exit; lBitmap := nil; if (DrawCommand is TppDrawRichText) then //Clear the global rich edit to reset rendering flags ppRichEdit.Clear;ppRichEdit.Clear will fail to work in multi-threaded application.