Custom cache for Reports

Stimulsoft Reports.NET discussion
Post Reply
SunilKumar
Posts: 11
Joined: Fri Oct 20, 2023 10:10 am

Custom cache for Reports

Post by SunilKumar »

I have implemented the custom cache for report.
The report is stored in the server in a file.
I used below code to render the report from cache file

Code: Select all

 if (guid.EndsWith("template")) report.LoadPackedReportFromString(packedReport);
 else report.LoadPackedDocumentFromString(packedReport);
First time when a report render (from actual source of data) the interaction button in my case expand/collapse button is rendering and working fine.
But when i try to render the report from the cache file.
The interaction button is vanishing.
Do there is any that can persist the buttons in the cache too.
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Custom cache for Reports

Post by Lech Kulikowski »

Hello,

The LoadPackedDocumentFromString loaded already rendered report and it is not available Interactions for it.

Thank you.
SunilKumar
Posts: 11
Joined: Fri Oct 20, 2023 10:10 am

Re: Custom cache for Reports

Post by SunilKumar »

Do there is any way that I can store the Interaction buttons also in cache?
So when I render the report from the cache it will have interaction buttons.
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Custom cache for Reports

Post by Lech Kulikowski »

Hello,

You should load the report template and render it, in that case, Interaction swill be available.

Thank you.
SunilKumar
Posts: 11
Joined: Fri Oct 20, 2023 10:10 am

Re: Custom cache for Reports

Post by SunilKumar »

Thanks, Above solution worked.
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Custom cache for Reports

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply