Skip to content

pbRTFAllPages - cDRReport

Methods - Properties - Events

Type

Boolean

Default

True

Arguments

None

Description

Exporting the report to RTF format can be done page-by-page or all report pages in one RTF file. The RTF format is typically used to open the output in a text editor which makes the multi-page option the default option.

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 2
            Send ExportReport of oReport C_drRTF 'c:\tmp\Page2.rtf'
        End
    End_Procedure
End_Object