Use a single StiReport object to save memory?
Posted: Mon Aug 05, 2013 3:07 pm
I've a question about using the report component correclty.
Let's assume I've 20 different MRT files with totally different reports and layouts.
Is it possible to create a single StiReport object and load the MRT files dynamically?
What I want to achive is, load the reports dynamically so they can be disposed from memory.
My latest approach takes a lot of memory as I use a new StiReport object for every report.
Then I merge let's say about 100 reports (each with it's own object) into one single
report. The problem is, that the 100 reports cannot be totally disposed from memory as
each report object was compiled and I learned from another post that it is not possible
to unload them from memory from the same app domain.
Currently I use VB.NET + Stimulsoft.NET report latest version.
I search for a way to use different reports with less as possible memory.
Thank you in advance.
Best Regards,
Thomas
Let's assume I've 20 different MRT files with totally different reports and layouts.
Is it possible to create a single StiReport object and load the MRT files dynamically?
What I want to achive is, load the reports dynamically so they can be disposed from memory.
My latest approach takes a lot of memory as I use a new StiReport object for every report.
Then I merge let's say about 100 reports (each with it's own object) into one single
report. The problem is, that the 100 reports cannot be totally disposed from memory as
each report object was compiled and I learned from another post that it is not possible
to unload them from memory from the same app domain.
Currently I use VB.NET + Stimulsoft.NET report latest version.
I search for a way to use different reports with less as possible memory.
Thank you in advance.
Best Regards,
Thomas