Angular Viewer is getting refresh automatically

Stimulsoft Reports.ANGULAR discussion
Post Reply
Vignesh Sekar
Posts: 9
Joined: Tue Jan 11, 2022 11:26 am

Angular Viewer is getting refresh automatically

Post by Vignesh Sekar »

We are using Angular Viewer to view the report and .Net core 3.1 API to process report view.
Angular Viewer is getting refresh automatically after rendered report.
Angular Viewer Calling "ViewerEvent" API after rendered report.
We need to stop this auto API call.
Is there any possibility to stop this auto refresh?
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Angular Viewer is getting refresh automatically

Post by Lech Kulikowski »

Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more detail? How do you want to show rendered report without viewer updates?

Thank you.
Vignesh Sekar
Posts: 9
Joined: Tue Jan 11, 2022 11:26 am

Re: Angular Viewer is getting refresh automatically

Post by Vignesh Sekar »

Hello,

Yes, we need to show report without viewer update.
after rendered report its getting updated automatically. we need to stop this auto update.

Thanks
Vadim
Posts: 362
Joined: Tue Apr 23, 2013 11:23 am

Re: Angular Viewer is getting refresh automatically

Post by Vadim »

Hello.

In component <stimulsoft-viewer-angular> on (loaded) event please add clearInterval(this.viewer.model.timerAutoUpdateCache);

<stimulsoft-viewer-angular #viewer (loaded)="loaded($event)"...
...
@ViewChild('viewer') viewer: StimulsoftViewerComponent;
...
loaded(data: any) {
clearInterval(this.viewer.model.timerAutoUpdateCache);
}
Vignesh Sekar
Posts: 9
Joined: Tue Jan 11, 2022 11:26 am

Re: Angular Viewer is getting refresh automatically

Post by Vignesh Sekar »

Hello Vadim,

Thanks, That is works fine.
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: Angular Viewer is getting refresh automatically

Post by Max Shamanov »

Hello

You are welcome.
Please let us know if you need any additional help.

Thank you.
Post Reply