Problem with Fonts while exporting to PDF

Stimulsoft Reports.NET discussion
faddoul.antoine
Posts: 16
Joined: Mon Sep 24, 2012 7:08 am

Problem with Fonts while exporting to PDF

Post 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
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problem with Fonts while exporting to PDF

Post 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.
faddoul.antoine
Posts: 16
Joined: Mon Sep 24, 2012 7:08 am

Re: Problem with Fonts while exporting to PDF

Post 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.
Attachments
Sample1.xlsx
Sample data sent to the report to be generated. Note that I am providing a data table as data source and the first row of the excel file is the Column name.
(11.24 KiB) Downloaded 361 times
SampleReport.mrt
(14.2 KiB) Downloaded 630 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problem with Fonts while exporting to PDF

Post 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.
faddoul.antoine
Posts: 16
Joined: Mon Sep 24, 2012 7:08 am

Re: Problem with Fonts while exporting to PDF

Post 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.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem with Fonts while exporting to PDF

Post 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.
faddoul.antoine
Posts: 16
Joined: Mon Sep 24, 2012 7:08 am

Re: Problem with Fonts while exporting to PDF

Post 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.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem with Fonts while exporting to PDF

Post by HighAley »

Hello.

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

Thank you.
faddoul.antoine
Posts: 16
Joined: Mon Sep 24, 2012 7:08 am

Re: Problem with Fonts while exporting to PDF

Post by faddoul.antoine »

Hello,

We are still getting the same error even after upgrading to the latest Stimulsoft dlls version.
Please advise.
Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem with Fonts while exporting to PDF

Post 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.
Post Reply