Page 1 of 1

Custom cache for Reports

Posted: Fri Oct 20, 2023 10:58 am
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.

Re: Custom cache for Reports

Posted: Fri Oct 20, 2023 9:09 pm
by Lech Kulikowski
Hello,

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

Thank you.

Re: Custom cache for Reports

Posted: Mon Oct 23, 2023 9:16 am
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.

Re: Custom cache for Reports

Posted: Tue Oct 24, 2023 7:56 am
by Lech Kulikowski
Hello,

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

Thank you.

Re: Custom cache for Reports

Posted: Fri Oct 27, 2023 7:47 am
by SunilKumar
Thanks, Above solution worked.

Re: Custom cache for Reports

Posted: Sat Oct 28, 2023 5:10 pm
by Lech Kulikowski
Hello,

You are welcome.