Page 1 of 1

Report printing - Webapi and Javascript

Posted: Fri Feb 07, 2020 5:57 pm
by ChromusMaster
I have some reports that look for images that may be in a specified folder or an azure blob. It takes about 1 minute to generate the report with all the information you need. When I click on print the report is re-generated and it takes another 1 minute to print this data.
Is there any way to configure it so that stimulsoft does not generate it again and instead uses the information already sought?

Re: Report printing - Webapi and Javascript

Posted: Tue Feb 11, 2020 9:42 am
by HighAley
Hello,

Is the cache enabled on the server-side?
Which our component do you use?
How do you render the report?
Maybe you should use the StiCacheHelper.

Thank you.

Re: Report printing - Webapi and Javascript

Posted: Mon Feb 17, 2020 12:00 pm
by ChromusMaster
HighAley wrote: Tue Feb 11, 2020 9:42 am Hello,

Is the cache enabled on the server-side?
Which our component do you use?
How do you render the report?
Maybe you should use the StiCacheHelper.

Thank you.
As the application that consumes stimulsoft is in the cloud, is there any risk of allocating a lot of memory on the servers and does this cause some other problem? I performed the tests on local machines, apparently they solve well. But I have this fear in the cloud.

Re: Report printing - Webapi and Javascript

Posted: Thu Feb 20, 2020 8:57 am
by Lech Kulikowski
Hello,

If you use standard methods of work with the cache, the server memory is used to store the built report. The storage time can be changed in the viewer options, the CacheTimeout property, by default 20 minutes.
You can also override the cache using the StiCacheHelper class and save reports to files or a database for example. You can find out more here:
https://www.stimulsoft.com/en/documenta ... ashing.htm

Thank you.