I get an error "PdfFonts error at point 8, code #80004005". An error occurs if "StiOptions.Export.Pdf.AllowImportSystemLibraries = true;". The error disappears for a while if you restart the server.
If "StiOptions.Export.Pdf.AllowImportSystemLibraries = false;", then there is no error, but then the standard view of pdf files in android does not display fonts.
Stimulsoft version 2020.5.1
My code:
public virtual MemoryStream GenerateStimulsoft<T>(string connectionString) where T: StiReport
{
var report = new StiReport();
report = (StiReport)Activator.CreateInstance(typeof(T));
var sqlDatabase = ((StiSqlDatabase)report.Dictionary.Databases["ReportConnection"]);
if (sqlDatabase == null) sqlDatabase = ((StiSqlDatabase)report.Dictionary.Databases[0]);
sqlDatabase.ConnectionString = connectionString;
report.Render();
var pdfSettings = new StiPdfExportSettings();
var stream = new MemoryStream();
report.ExportDocument(StiExportFormat.Pdf, stream, pdfSettings);
stream.Flush();
stream.Position = 0;
return stream;
}
Net.Standart 2.0 PdfFonts error at point 8, code #80004005
-
- Posts: 3
- Joined: Tue Jan 26, 2021 4:24 am
-
- Posts: 7341
- Joined: Tue Mar 20, 2018 5:34 am
Re: Net.Standart 2.0 PdfFonts error at point 8, code #80004005
Hello,
Please send us a sample that reproduces the issue for analysis.
Thank you.
Please send us a sample that reproduces the issue for analysis.
Thank you.