Report printing - Webapi and Javascript

Stimulsoft Reports.NET discussion
Post Reply
ChromusMaster
Posts: 5
Joined: Tue Jun 04, 2019 7:18 pm

Report printing - Webapi and Javascript

Post 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?
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Report printing - Webapi and Javascript

Post 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.
ChromusMaster
Posts: 5
Joined: Tue Jun 04, 2019 7:18 pm

Re: Report printing - Webapi and Javascript

Post 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.
Lech Kulikowski
Posts: 6264
Joined: Tue Mar 20, 2018 5:34 am

Re: Report printing - Webapi and Javascript

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