Hello,
I found that my memory is high because my LinQ querry return large data, even I Disposed the report it still high. Any recommend for this case?
Search found 6 matches
- Fri Mar 22, 2024 8:11 am
- Forum: Stimulsoft Reports.NET
- Topic: How to release memory when the report is loaded
- Replies: 12
- Views: 1992
- Fri Mar 22, 2024 7:01 am
- Forum: Stimulsoft Reports.NET
- Topic: How to release memory when the report is loaded
- Replies: 12
- Views: 1992
Re: How to release memory when the report is loaded
Hello,
Here is my example .mrt file, just a empty table and my C# will RegData by using LinQ and Compile.
Here is my example .mrt file, just a empty table and my C# will RegData by using LinQ and Compile.
- Fri Mar 15, 2024 10:20 am
- Forum: Stimulsoft Reports.NET
- Topic: How to release memory when the report is loaded
- Replies: 12
- Views: 1992
Re: How to release memory when the report is loaded
Hello, Sorry that I can not prepare a full sample project, but I can give you sample code for previewing: - In my controller: public async Task<IActionResult> GetReport() { var report = StiReport.CreateNewReport(); var reportTemplate = "mybase64_mrt_content" if (reportTemplate != null) { v...
- Wed Mar 13, 2024 10:34 am
- Forum: Stimulsoft Reports.NET
- Topic: How to release memory when the report is loaded
- Replies: 12
- Views: 1992
Re: How to release memory when the report is loaded
Hello,
However, I also use ViewerInteraction to query by using StiAction.Variables to pass variables into report.Dictionary.Variables.
If I remove the Compile() method, when I click submit, the report does not load the data in UI.
However, I also use ViewerInteraction to query by using StiAction.Variables to pass variables into report.Dictionary.Variables.
If I remove the Compile() method, when I click submit, the report does not load the data in UI.
- Tue Mar 12, 2024 9:19 am
- Forum: Stimulsoft Reports.NET
- Topic: How to release memory when the report is loaded
- Replies: 12
- Views: 1992
Re: How to release memory when the report is loaded
Hello,
Thanks for the response.
My flow is something like this:
1. Load the layout empty from .mrt file
2. Query data by LinQ and RegData
3. Compile
So could I use mode Interpretation ?
Thanks for the response.
My flow is something like this:
1. Load the layout empty from .mrt file
2. Query data by LinQ and RegData
3. Compile
So could I use mode Interpretation ?
- Tue Mar 12, 2024 3:34 am
- Forum: Stimulsoft Reports.NET
- Topic: How to release memory when the report is loaded
- Replies: 12
- Views: 1992
How to release memory when the report is loaded
I use .NET 7 with Stimulsoft.Reports.Web.NetCore version 2022.4.4. I loaded a report from a string, then compile and render it. How can I release memory of the report when the report is close ? I can not dispose in the GetReport function because it need to return StiNetCoreViewer.GetReportResult(thi...