Skip to content

pbImageExportMultiPage - cDRReport

Methods - Properties - Events

Type

Boolean

Default

False

Arguments

None

Description

Export to TIFF files support multiple pages in one file. All other image formats only support one page at the time. The default for peImageExportType is C_drJPEG which makes the default for this option the right choice.

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 oExportToImageReportButton is a Button
    Set Label to 'Export Report to Image'

    Procedure OnClick
        String sReportId

        Get OpenReport of oReport to sReportId
        If (sReportId <> '') Begin
            Set pbImageExportMultiPage of oReport to True
            Set peImageExportType of oReport to C_drTiff
            Send ExportReport of oReport C_drImage 'c:\tmp\MyReport.tiff'
        End
    End_Procedure
End_Object