Page 1 of 2

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
by mightyuser
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.

Re: Errors when generating report in pdf, dbf and tiff formats in Stimulsoft.Reports.Web.Net Core v2022.3.4

Posted: Thu Aug 18, 2022 1:59 pm
by Lech Kulikowski
Hello,

Please send us a sample project that reproduces the issue for analysis.

Thank you.

Re: Errors when generating report in pdf, dbf and tiff formats in Stimulsoft.Reports.Web.Net Core v2022.3.4

Posted: Thu Aug 18, 2022 2:15 pm
by mightyuser
Unfortunately, these errors occur in a highly integrated project, so I can't provide you with a sample project, all I can provide at the moment is an example of a report that throw errors when generating in the specified formats

Re: Errors when generating report in pdf, dbf and tiff formats in Stimulsoft.Reports.Web.Net Core v2022.3.4

Posted: Fri Aug 19, 2022 9:11 am
by Lech Kulikowski
Hello,

Ok. Please send us an mrt file with test data.

Thank you.

Re: Errors when generating report in pdf, dbf and tiff formats in Stimulsoft.Reports.Web.Net Core v2022.3.4

Posted: Mon Sep 19, 2022 10:52 am
by mightyuser
The project doesn't have mrt file, so I made a sample project that reproduces the errors described above.

Re: Errors when generating report in pdf, dbf and tiff formats in Stimulsoft.Reports.Web.Net Core v2022.3.4

Posted: Mon Sep 19, 2022 3:49 pm
by Max Shamanov
Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.

Re: Errors when generating report in pdf, dbf and tiff formats in Stimulsoft.Reports.Web.Net Core v2022.3.4

Posted: Mon Oct 17, 2022 11:14 am
by mightyuser
Hello, were you able to make any progress on solving the issues?

Re: Errors when generating report in pdf, dbf and tiff formats in Stimulsoft.Reports.Web.Net Core v2022.3.4

Posted: Tue Oct 18, 2022 6:14 am
by Max Shamanov
Hello,

We are still working on the issue, we will let you know about the result.

Thank you.

Re: Errors when generating report in pdf, dbf and tiff formats in Stimulsoft.Reports.Web.Net Core v2022.3.4

Posted: Thu Oct 20, 2022 4:38 pm
by Max Shamanov
Hello,

We have made an improvement.
Please, check our next build when it will be available.

Thank you.

Re: Errors when generating report in pdf, dbf and tiff formats in Stimulsoft.Reports.Web.Net Core v2022.3.4

Posted: Mon Oct 24, 2022 6:26 am
by mightyuser
Great, the described issues was solved, however the report in tiff format still generated empty, this can also be seen in the sample project, can you look into this issue?