I'm building an app that renders a report and then export it to Pdf.
Sample code:
Code: Select all
public byte[] returnPdf(string fileName)
{
StiReport report = StiReport.GetReportFromAssembly(fileName);
report.Render();
if (!Path.HasExtension(pdfName))
pdfName += ".pdf";
using (MemoryStream pdfFile = new MemoryStream())
{
report.ExportDocument(StiExportFormat.Pdf, pdfFile);
pdfFile.Position = 0;
return pdfFile.ToArray();
}
}
I was searching on forums and I found this problem that looks like exactly like mine, but there werent given any solutions: https://translate.google.com/translate? ... %26t%3D377
The leaks I'm getting are from the same two classes: Stimulsoft.Report.Export.StiBidirectionalConvert and Stimulsoft.Report.Export.PdfFonts.
Could anyone please help me?
Thanks in advance.