Skip to content

PrintReport - cWebDRReportViewer

Method Type

Procedure

Arguments

None

Description

Can be used to instruct the control to navigate to print the report.

Sample

Object oWebMainPanel is a cWebPanel
    Set pbFillHeight to True

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

        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