Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

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:
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.

Comments

  • There is a patch available for this issue. Registered customers with a valid software subscription can email support@digital-metaphors.com to receive the patch.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.