Skip to content

OnExportReport - cDRReport

Methods - Properties - Events

Method Type

Procedure (event)

Arguments

Argument Description
iExportType One of the Export Type constants.
sFileName Name of the export file.

Description

This event is sent during the ExportReport method, before the actual export is done. The export can be cancelled by setting pbCanceled

DataFlex Framework usage

  • Web
  • Windows
  • FlexTron

Sample

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

    Procedure OnExportReport Integer iExportType String sFileName
        Forward Send OnExportReport iExportType sFileName

        // Would cancel the export of the report
        Set pbCanceled to (iExportType = C_drCSV)
    End_Procedure
End_Object