New version 2021.4.3 crash

I've a simple program that export in pdf and it fails with exception


---

System.IO.FileNotFoundException:

at FastReport.Export.Pdf.PDFExport.GetGlobalFont(Font font)

at FastReport.Export.Pdf.PDFExport.GetObjFontNumber(Font font)

at FastReport.Export.Pdf.PDFExport.AddTextObject(TextObject obj, Boolean drawBorder, StringBuilder sb_in)

at FastReport.Export.Pdf.PDFExport.ExportObj(Base c)

at FastReport.Export.Pdf.PDFExport.ExportBand(Base band)

at FastReport.Export.ExportBase.ExportPageNew(Int32 pageNo)

at FastReport.Export.ExportBase.Export(Report report, Stream stream)

at FastReport.Export.ExportBase.Export(Report report, String fileName)

at FastReport.Report.Export(ExportBase export, String fileName)

at dsFastReport.Program.Main(String[] args) in C:\projects\provafastcore\Program.cs:line 32

----

the os is windows10 and I've tested it on two different pc. Some one have experienced this problem?

Comments

  • I have this same issue, I have had it with previous versions as well. THough I only see it in my .net core 5 MVC web app. I just updated today and was really let down that this has come back AGAIN...

  • Hello!

    When starting the application, specify a writable local cache directory and server mode:

    FastReport.Utils.Config.WebMode = true;
    FastReport.Utils.Config.TempFolder = Path.Combine(AppContext.BaseDirectory, ‘fr_font_cache’);
    Directory.CreateDirectory(FastReport.Utils.Config.TempFolder);
    

    Please ensure that the font used in the template is installed on the operating system (or loaded via PrivateFontCollection), or use `EmbeddingFonts = true` and update to the latest build of FastReport .NET, where font handling (and the Skia backend for non-Windows/DPI scenarios) has been significantly improved.

This discussion has been closed.