Skip to content

piPageCount - cWebDRReportViewer

Type

Integer

Default

0

Arguments

None

Description

This read-only property can be used to determine how many pages are present in the client (web) control. The page count will be set by JavaScript.

The property is a web synchronized property, which means that the WebGet command needs to be used.

Sample

Object oViewer is a cWebDRReportViewer
    Procedure GoToPage Integer iPage
        Integer iPages

        WebGet piPageCount to iPages
        If (iPage <= iPages and iPage >= 1) Begin
            WebSet piPage to iPage
        End
    End_Procedure
End_Object