Skip to content

ShowReport - cWebDRReportViewer

Method Type

Procedure

Arguments

None

Description

Send this message to the viewer control to start the report data collection, formatting, and viewing. Based on the peMode property, a GenerateReportHTML (peMode = C_HTMLOUTPUT) or a GenerateDownloadLinks (peMode = C_IMAGEOUTPUT) is sent to the report object whose ID is stored in phoReport.

The method sets piPage and piPageCount to 0. These values are calculated on the client side (JavaScript).

Sample

Object oViewer is a cWebDRReportViewer
    Set phoReport to oReport
End_Object

Object oStartButton Is a cWebButton
    Set psCaption To "Run Report"

    Procedure OnClick
        Send ShowReport Of oViewer
    End_Procedure
End_Object