Page 1 of 3

Problem with Fonts while exporting to PDF

Posted: Mon Sep 24, 2012 7:12 am
by faddoul.antoine
Hello,

I am having the following error when i try to export a report to PDF:
PdfFonts error at point 9, code #80004005: The system cannot find the file specified

at Stimulsoft.Report.Export.PdfFonts.ThrowError(Int32 step) at Stimulsoft.Report.Export.PdfFonts.GetFontDataFromGdi(Font font, Byte[]& buff) at Stimulsoft.Report.Export.PdfFonts.GetFontDataBuf(Font font, Byte[]& buff) at Stimulsoft.Report.Export.StiPdfExportService.RenderFontTable(Int32 indexOffset) at Stimulsoft.Report.Export.StiPdfExportService.ExportPdf(StiReport report, Stream stream, StiPdfExportSettings settings) at Stimulsoft.Report.Export.StiPdfExportService.ExportPdf(StiReport report, Stream stream) at...


Note that the report was working properly before and now it is always generating this error.
Awaiting for your support.

Regards,
Netiks

Re: Problem with Fonts while exporting to PDF

Posted: Mon Sep 24, 2012 9:46 am
by Alex K.
Hello,

Could you explain your issue in more details?
Please send us a sample report with test data which reproduces the issue for analysis.

Thank you.

Re: Problem with Fonts while exporting to PDF

Posted: Mon Sep 24, 2012 10:55 am
by faddoul.antoine
Dear,

You can find attached the report file that i am using to export data to PDF along with some data sample.
Note that this error is occurring while generating the report from a specific computer only. Could it be related to any software installed lately on that computer?

Regards.

Re: Problem with Fonts while exporting to PDF

Posted: Mon Sep 24, 2012 12:38 pm
by Alex K.
Hello,

We couldn't reproduce this bug.
Please check the last version on this specific computer and let us know about the result.

Thank you.

Re: Problem with Fonts while exporting to PDF

Posted: Mon Sep 24, 2012 1:28 pm
by faddoul.antoine
Hello,

While browsing your forum i found that the solution for this problem is to reboot the server:
http://forum.stimulsoft.com/viewtopic.php?&t=3742

But the reason behind this problem is still unknown...
Thank you.

Re: Problem with Fonts while exporting to PDF

Posted: Tue Sep 25, 2012 8:16 am
by HighAley
Hello.
faddoul.antoine wrote:While browsing your forum i found that the solution for this problem is to reboot the server:
http://forum.stimulsoft.com/viewtopic.php?&t=3742

But the reason behind this problem is still unknown...
As far as we couldn't reproduce the issue and the problem occurs in Windows GDI we couldn't provide you the solution of the problem.
The problem occurs in the method that works without any changes for years. This issue is incidentally.

Thank you.

Re: Problem with Fonts while exporting to PDF

Posted: Fri Jan 04, 2013 7:15 am
by faddoul.antoine
Dears,

We are still sometimes getting this error (around once per month) and it is causing us a problem with the customers.
As already mentioned, it is resolved after restarting the server that the stimulsoft is generated on.
Please any new suggestions regarding how to prevent having this error again? Or what is the reason behind this error?

Awaiting for your feedback.

Re: Problem with Fonts while exporting to PDF

Posted: Fri Jan 04, 2013 12:27 pm
by HighAley
Hello.

Please, check our latest prerelease build that available on our site.
There were several improvements.

Thank you.

Re: Problem with Fonts while exporting to PDF

Posted: Wed Jan 16, 2013 9:38 am
by faddoul.antoine
Hello,

We are still getting the same error even after upgrading to the latest Stimulsoft dlls version.
Please advise.
Thank you.

Re: Problem with Fonts while exporting to PDF

Posted: Thu Jan 17, 2013 10:30 am
by HighAley
Hello.

Please, try to set next property:

Code: Select all

the StiOptions.Export.Pdf.AllowFontsCache = true
This property will enable font caching in the static table.
This table will use additional memory but each font will be requested from system once. It should solve your problem.

Thank you.