TOC : Script API > JavaScript > JavaScript API > GeneralScript > Page > Method >

 

GetPageIndex

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : Script API > JavaScript > JavaScript API > GeneralScript > Page > Method >

 

GetPageIndex

 

 

Gets the page index (zero-based index) of all reports displayed in the viewer.

 

 

 

Prototype :

 

integer GetPageIndex

(

        No Arguments

)

 

 

 

Reference :

 

The page index begins from 0 and the page number becomes the page index plus 1.

 

 

 

Example :

 

var objPage = ReportTemplate.GetCurrentPage();

var PageInfo = (objPage.GetPageIndex() + 1) + "/" + objPage.GetPageCount();

 

 

 

Available Events :

 

OnAddToPage,  OnCheckValidity,  OnClick,  OnEndBind,  OnFocus,  OnKillFocus,  OnLocationUpdated,  OnValueChanged