Skip to content

pHTMLExportOptions - cDRReport

Methods - Properties - Events

Obsolete

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

Type

drHTMLExportOptions structure

Default

None

Arguments

None

Description

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

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

You can call the function DefaultHTMLExportOptions to initialize the drHTMLExportOptions 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
        drHTMLExportOptions myExportOptions

        Get OpenReport Of oReport To sReportId

        // set the export options
        Get DefaultHTMLExportOptions of oReport to myExportOptions
        Move False to myExportOptions.bMultiPage
        Move 1 to myExportOptions.iPage
        Set pHTMLExportOptions of oReport to myExportOptions

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