Page 1 of 1

Simulating Goto Page with a Html Button

Posted: Tue Feb 28, 2023 6:28 pm
by rjorge99
Hi, I've been trying to navigate the report I'm showing but with custom buttons. I mean, I'm hidding the Viewer Toolbar, and I have custom html button that I would like to use to Go to the last page, first page, next page, and previous.

I've been reading the documentation, but I just can't find the methods, or samples to perform this operation.

Somebody have done this before?

Thanks

Re: Simulating Goto Page with a Html Button

Posted: Wed Mar 01, 2023 6:55 pm
by Lech Kulikowski
Hello,

Please check the following actions:

var viewer = new Stimulsoft.Viewer.StiViewer(options, "StiViewer", false);
viewer.renderHtml("content");

viewer.jsObject.postAction("NextPage"); //FirstPage, PrevPage, LastPage

Thank you.