Skip to content

OnPostExportReport - 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 by the object at the end of an ExportReport method. The event can – as shown below – be used to open the export file at the end of the export process.

DataFlex Framework usage

  • Web
  • Windows
  • FlexTron

Sample

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

    Procedure OnPostExportReport Integer iExportType String sFileName
        Handle hWnd
        Integer iRetval

        Forward Send OnPostExportReport iExportType sFileName

        Get Window_Handle to hWnd
        Move (DR_WinAPI_ShellExecute (hWnd, "OPEN", sFileName, "", "", SW_SHOWDEFAULT)) to iRetval
    End_Procedure
End_Object