Skip to content

pbCanceled - cDRReport

Methods - Properties - Events

Type

Boolean

Default

False

Arguments

None

Description

A developer may choose to cancel the report in OnInitializeReport, OnPrintReport, OnExportReport, or OnDisplayReport by setting this property to True.

If the property pbCanceled is set to True, the print, display, or export will be cancelled.

DataFlex Framework usage

  • Web
  • Windows
  • FlexTron

Sample

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

Object oRunReportButton is a Button
    Set Label to 'Run Report'

    Procedure OnClick
        String sReportId

        Get OpenReport of oReport to sReportId
        If (sReportId <> '') Begin
            // We can now break its further actions
            Set pbCanceled of oReport to True

            // Now report will not be displayed
            Send DisplayReport of oReport
        End
    End_Procedure
End_Object