I have problem with fonts while exporting to HTML (PDF is fine)
Posted: Wed Feb 26, 2025 4:40 pm
I have problem with fonts in output files.
I use following code:
htmlOutput doesn't have appropriate font (just some replacement like Arial or something ugly) while PDF works fine.
Any ideas how to fix it?
I use following code:
Code: Select all
StiReport report = new StiReport();
var loadedTemplate = report.Load(@"C:\folder\template.mrt");
var rdyDoc = loadedTemplate.LoadDocument(@"C:\folder\report.mdc");
rdyDoc.ExportDocument(StiExportFormat.Pdf, @"C:\folder\pdfOutput.pdf");
rdyDoc.ExportDocument(StiExportFormat.Html, @"C:\folder\htmlOutput.html");
Any ideas how to fix it?