I read the binary layout of report from a DB (one layout represents one page, we have different data for each page, but the layout is the same):
Code: Select all
StiReport stiReport = new StiReport();
stiReport.LoadPackedReport(binaryLayout);
First I had:
finalReport.SubReports.Add(stiReport, false, true);
But for each sub report I have an assembly being leaked at render time.
So, I tried to use:
finalReport.SubReports.Add(stiReport.CreateReportInNewAppDomain(), false, true);
But I get Serialization issues (ex: Type 'Stimulsoft.Report.Units.StiInchesUnit' in assembly 'Stimulsoft.Report, Version=2021.1.1.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a' is not marked as serializable.)
This report can reach more than 300 pages representing a leak of more than 301 assemblies at each render.
Could you please help me?
Thanks