Skip to content

PrevPage - cWebDRReportViewer

Method Type

Procedure

Arguments

None

Description

This method instructs the control to navigate to the previous page. If the current page is the first page, no action occurs. The piPage property will be updated upon a successful page change.

Sample

Object oWebMainPanel is a cWebPanel
    Set pbFillHeight to True

    Object oToolBar is a cWebPanel
        Set peRegion to prTop
        Set piColumnCount to 4

        Object oNextPageButton is a cWebButton
            Set psCaption to "Next Page"
            Set piColumnSpan to 2

            Procedure OnClick
                Send NextPage of oViewer
            End_Procedure
        End_Object

        Object oPreviousPageButton is a cWebButton
            Set psCaption to "Previous Page"
            Set piColumnSpan to 2
            Set piColumnIndex to 2

            Procedure OnClick
                Send PrevPage of oViewer
            End_Procedure
        End_Object

        Object oPrintButton is a cWebButton
            Set psCaption to "Print"
            Set piColumnSpan to 2
            Set piColumnIndex to 4

            Procedure OnClick
                Send PrintReport of oViewer
            End_Procedure
        End_Object
    End_Object

    Object oViewerPanel is a cWebPanel
        Object oViewer is a cWebDRReportViewer
            Set phoReport to oReport
            Set pbShowToolbar to False
        End_Object
    End_Object
End_Object