Page 1 of 1

Angular Viewer is getting refresh automatically

Posted: Sat Jan 15, 2022 2:13 am
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?

Re: Angular Viewer is getting refresh automatically

Posted: Mon Jan 17, 2022 8:12 am
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.

Re: Angular Viewer is getting refresh automatically

Posted: Mon Jan 17, 2022 8:21 am
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

Re: Angular Viewer is getting refresh automatically

Posted: Mon Jan 17, 2022 11:25 am
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);
}

Re: Angular Viewer is getting refresh automatically

Posted: Thu Jan 20, 2022 11:17 am
by Vignesh Sekar
Hello Vadim,

Thanks, That is works fine.

Re: Angular Viewer is getting refresh automatically

Posted: Thu Jan 20, 2022 1:30 pm
by Max Shamanov
Hello

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

Thank you.