Skip to content

piRTFPage - cDRReport

Methods - Properties - Events

Type

Integer

Default

1

Arguments

None

Description

When the export to RTF should not include all pages pbRTFAllPages 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 oExportToRTFReportButton is a Button
    Set Label to 'Export Report to RTF'

    Procedure OnClick
        String sReportId

        Get OpenReport of oReport to sReportId
        If (sReportId <> '') Begin
            Set pbRTFAllPages of oReport to false
            Set piRTFPage of oReport to 3
            Send ExportReport of oReport C_drRTF 'c:\tmp\Page3.rtf'
        End
    End_Procedure
End_Object