Skip to content

CancelReport - cDRReport

Methods - Properties - Events

Method Type

Procedure

Arguments

None

Description

Stops execution of printing, previewing, or exporting of the current report being executed.

Sets [pbCanceled](../both/pbcanceled.md

This method cannot be used before the report OCX object is initialized. The COM object creation is performed as part of the OpenReport method if it has not been done beforehand.

DataFlex Framework Usage

  • Web
  • Windows
  • FlexTron

Sample

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

    Procedure OnReportInfo Integer iError String sInfo
        Send CancelReport
    End_Procedure
End_Object  

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

    Procedure OnClick
        Send RunReport of oReport
    End_Procedure
End_Object