Errors when generating report in pdf, dbf and tiff formats in Stimulsoft.Reports.Web.Net Core v2022.3.4
Posted: Thu Aug 18, 2022 6:50 am
As title says, I encountered several problems when generating report in the ASP NET web application and all these problems arise in the Stimulsoft.Report.StiReport.ExportDocument method. The problems are as follows:
Pdf
System.Exception: "Exception in PdfFonts.GetFontMetrics, font 'Tahoma' step #40: 'The value U+D83D is not a valid Unicode code point value. Must not be in [ U+D800..U+DFFF ], inclusive. (Parameter 'value')'".
This problem does not always occur, sometimes generating report in pdf still works. At first, as it seemed to me, the problem was caused by the symbol
, however, when deleting records with this symbol, the problem still arises.
Dbf
System.ArgumentException: "The output byte buffer is too small to contain the encoded data, encoding 'Unicode (UTF-8)' fallback 'System.Text.EncoderReplacementFallback'. Arg_ParamName_Name".
I can't say much about this problem, since it occurs every time a report is generated in this format.
ImageTiff
System.ArgumentOutOfRangeException: "Parameter "width" (System.Single) must be greater than 0, was 0 Arg_ParamName_Name".
As in Dbf problem occurs every time.
The problems occur only in these formats that we use, in others everything works correctly. I'll attach an example of report generated in xlsx format that when generating in the formats described above throw errors.
System.Exception: "Exception in PdfFonts.GetFontMetrics, font 'Tahoma' step #40: 'The value U+D83D is not a valid Unicode code point value. Must not be in [ U+D800..U+DFFF ], inclusive. (Parameter 'value')'".
This problem does not always occur, sometimes generating report in pdf still works. At first, as it seemed to me, the problem was caused by the symbol
Dbf
System.ArgumentException: "The output byte buffer is too small to contain the encoded data, encoding 'Unicode (UTF-8)' fallback 'System.Text.EncoderReplacementFallback'. Arg_ParamName_Name".
I can't say much about this problem, since it occurs every time a report is generated in this format.
ImageTiff
System.ArgumentOutOfRangeException: "Parameter "width" (System.Single) must be greater than 0, was 0 Arg_ParamName_Name".
As in Dbf problem occurs every time.
The problems occur only in these formats that we use, in others everything works correctly. I'll attach an example of report generated in xlsx format that when generating in the formats described above throw errors.