Skip to content

piXLSPage - cDRReport

Methods - Properties - Events

Type

Integer

Default

1

Arguments

None

Description

When the export to XLS should not include all pages pbXLSAllPages this property can be used to instruct the print engine which page to export 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 oExportToXLSReportButton is a Button
    Set Label to 'Export Report to XLS'

    Procedure OnClick
        String sReportId

        Get OpenReport of oReport to sReportId
        If (sReportId <> '') Begin
            Set pbXLSAllPages of oReport to false
            Set piXLSPage of oReport to 3
            Send ExportReport of oReport C_drXLS 'c:\tmp\Page3.xls'
        End
    End_Procedure
End_Object