Skip to content

piHTMLPage - cDRReport

Methods - Properties - Events

Type

Integer

Default

1

Arguments

None

Description

When the option pbHtmlMultiPage is set to false this setting is used to specify the report page number that gets exported to the file.

Can be retrieved or set after the OCX is initialized.

DataFlex Framework Usage

  • Web
  • Windows
  • FlexTron

Sample

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

Object oExportToHTMLReportButton is a Button
    Set Label to 'Export Report to HTML'

    Procedure OnClick
        String sReportId

        Get OpenReport of oReport to sReportId
        If (sReportId <> '') Begin
            Set pbHTMLMultiPage of oReport to False
            Set piHTMLPage of oReport to 2
            Send ExportReport of oReport C_drHTML 'c:\tmp\2ndPage.html'
        End
    End_Procedure
End_Object