I’m experiencing an issue with exporting a report to HTML. I’m sending several thousand emails with the HTML report attached in the email, but it seems like there is ~2mb jump in memory when the report is exported that never gets released. Over several thousand iterations, it’s causing our service to crash.
We give our users the option to send the report as either HTML or DHTML, or as PDF. HTML and HDTML both exhibit this problem where-as PDF does not. There doesn’t seem to be anything special about the PDF implementation we use that would suggest a problem on our side.
Is this something you’ve seen or have fixed in any later versions of Active Reports?
Private WithEvents rpt As GrapeCity.ActiveReports.SectionReport = Nothing Dim pdfExp As GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport = Nothing Dim htmlExp As GrapeCity.ActiveReports.Export.Html.Section.HtmlExport = Nothing Select Case True Case (m_exportFormat = exportFormats.HTML) Or (m_exportFormat = exportFormats.DHTML) htmlExp = New GrapeCity.ActiveReports.Export.Html.Section.HtmlExport If m_exportFormat = exportFormats.HTML Then htmlExp.OutputType = GrapeCity.ActiveReports.Export.Html.Section.HtmlOutputType.LegacyHtml Else htmlExp.OutputType = GrapeCity.ActiveReports.Export.Html.Section.HtmlOutputType.DynamicHtml End If If Not m_memStream Is Nothing Then htmlExp.Export(rpt.Document, m_memStream) bReturn = True Else htmlExp.Export(rpt.Document, m_exportPath) bReturn = True End If htmlExp = Nothing Case exportFormats.PDF pdfExp = New GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport pdfExp.Export(rpt.Document, m_exportPath)