Search found 6 matches

by nn170498
Fri Mar 22, 2024 8:11 am
Forum: Stimulsoft Reports.NET
Topic: How to release memory when the report is loaded
Replies: 12
Views: 2001

Re: How to release memory when the report is loaded

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?
by nn170498
Fri Mar 22, 2024 7:01 am
Forum: Stimulsoft Reports.NET
Topic: How to release memory when the report is loaded
Replies: 12
Views: 2001

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.
by nn170498
Fri Mar 15, 2024 10:20 am
Forum: Stimulsoft Reports.NET
Topic: How to release memory when the report is loaded
Replies: 12
Views: 2001

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...
by nn170498
Wed Mar 13, 2024 10:34 am
Forum: Stimulsoft Reports.NET
Topic: How to release memory when the report is loaded
Replies: 12
Views: 2001

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.
by nn170498
Tue Mar 12, 2024 9:19 am
Forum: Stimulsoft Reports.NET
Topic: How to release memory when the report is loaded
Replies: 12
Views: 2001

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 ?
by nn170498
Tue Mar 12, 2024 3:34 am
Forum: Stimulsoft Reports.NET
Topic: How to release memory when the report is loaded
Replies: 12
Views: 2001

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...