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

Exception when generating PDF: 'VerifyUnicodeFont: No Font Found'

edited April 2011 in General
?ReportBuilder 12.03 Enterprise, Delphi 2010, unit 'ppPDFCanvas'

Some customers are getting this exception when generating PDF files.
This is because of characters which are not available in the current
font. A fallback font can not be found, so this exception is thrown.

This happens on WinXP, on Win7 everything is ok.

We already had this problem a few times and always fixed it by
correcting the database texts, but this is getting annoying and it will
happen again.

Isn't it possible to just use a 'replacement character' for characters
which are not available in the current font?

kind regards,
Erwin




--- posted by geoForum on http://www.newswhat.com

Comments

  • edited April 2011
    Hi Erwin,

    There is a patch available for RB 12.04 that solves this issue. Send an
    email to support@digital-metaphors.com requesting the patch and we'll
    send it to you as soon as possible.

    You will also need to upgrade your version to 12.04 to use the patch.


    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2011
    to add some more info:

    the text has a trailing #10 (Linefeed), the report preview displays the
    trailing LF as a square.

    We have no control over this text, it is stored into the database by our
    customer and displayed by a DBText.

    The same error happens when using other fonts on my WinXP test machine.
    I even copied the font "Arial Unicode MS" from my Win7 box to WinXP and
    got the same error.

    The problem happens with a TppLabel under WinXP also:

    procedure TForm1.Button1Click(Sender: TObject);
    begin
    ppLabel1.Caption := 'hello world' + #10;
    ppReport1.AllowPrintToFile := True;
    ppReport1.TextFileName := 'C:\test.pdf';
    ppReport1.DeviceType := dtPDF;
    ppReport1.PDFSettings.FontEncoding := feUnicode;
    ppReport1.PDFSettings.OpenPDFFile := True;
    ppReport1.Print;
    end;






    --- posted by geoForum on http://www.newswhat.com
  • edited April 2011
    Hi Nico,

    thanks for the info.

    Is RB 12.05 coming soon or should i install 12.04 + patch?

    kind regards,
    Erwin



    --- posted by geoForum on http://www.newswhat.com
  • edited April 2011
    Hi Erwin,

    We are not able to provide an accurate time frame for the next release
    of ReportBuilder. It would be best to upgrade to RB 12.04 and apply the
    patch.


    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.