Skip to content

pRTFExportOptions - cDRReport

Methods - Properties - Events

Obsolete

The property is obsolete per version 26. Setting RTF export options is now done via the properties

Type

drRTFExportOptions structure

Default

None

Arguments

None

Description

This write-only property must be set before exporting to RTF format (ExportReport). The property should be assigned a value of the drRTFExportOptions data type.

This property cannot be set until the report OCX object is initialized. The COM object is created as part of the OpenReport method if it has not been done previously.

You can call the function DefaultRTFExportOptions to initialize the drRTFExportOptions variable.

Obsolete per version 26

DataFlex Framework usage

  • Web
  • Windows
  • FlexTron

Sample

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

Object oExportReportButton is a Button
    Set Label to 'Export Report'

    Procedure OnClick
        drRTFExportOptions myExportOptions

        Get OpenReport Of oReport To sReportId
        // set the export options
        Get DefaultRTFExportOptions of oReport to myExportOptions
        Move False to myExportOptions.bAllPages
        Move 1 to myExportOptions.iPage
        Set pRTFExportOptions of oReport to myExportOptions

        // exports the report to a file named ExportFile.rtf
        Send ExportReport of oReport C_drRTF 'c:\tmp\ExportFile.rtf'
    End_Procedure
End_Object