Skip to content

psExportFileName - cDRReport

Methods - Properties - Events

Type

String

Default

None

Arguments

None

Description

Sets/Gets the name of the file used to export to.

The property needs to be set before calling OutputReport when [peOutputDestination](../both/peoutput-destination.md PRINT_TO_FILE.

This property is only utilized by OutputReport when peOutputDestination is set to PRINT_TO_FILE.

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
        drImageExportOptions ImageExportOptions

        Get OpenReport of oReport to sReportId

        Set peExportType of oReport to C_drImage
        Set psExportFileName of oReport to 'c:\tmp\MyOutput.jpg'

        // set the export options for image export
        Move C_drJPEG to ImageExportOptions.iImageType
        Move False to ImageExportOptions.bMultiPage
        Move 2 to ImageExportOptions.iPage
        Set pImageExportOptions of oReport to ImageExportOptions

        Send OutputReport of oReport
    End_Procedure
End_Object