Skip to content

OnDisplayReport - cDRReport

Methods - Properties - Events

Method Type

Procedure (event)

Arguments

None

Description

This event is sent during the DisplayReport method.

DataFlex Framework Usage

  • Windows
  • FlexTron (using Windows previewer)

Sample

Object oReport is a cDRReport
    Set psReportName to 'MyReport.dr'

    Procedure OnDisplayReport
        Integer eAnswer

        Forward Send OnDisplayReport

        // Would cancel the further display of the report
        Move (YesNo_Box ('Do you want to display the report', 'Confirmation', MB_DEFBUTTON2)) to eAnswer
        Set pbCanceled to (eAnswer = MBR_YES)
    End_Procedure
End_Object