These two methods return the current page number on the window and the total number of pages in the current report. They can be called only after you have called the method JRDirectViewer or JRRunViewer.
This method brings the page specified by pageNumber to the window. If the pageNumber is out of the range of the current report, the first page (if the pageNumber is less than 0), or the last page will be shown on the window. The returned value is the current page number.
These four methods bring the page specified to the window. The return values of these methods are strings. The values can be: