Skip to content

pbCopyReportPageSizeAndOrientation - cDRReport

Methods - Properties - Events

Type

Boolean

Default

True

Arguments

None

Description

This property controls whether paper orientation and paper size information from the report definition should be copied to the cPrintDialog information. When copied, the cPrintDialog constructs its own DEVMODE data block to be passed to the printer selection dialog.

Passing this information to the printer selection dialog may cause the default printer choice from the print dialog to fail in printing. Not passing this information may result in a mismatch between the paper orientation of the report and the selected printer. The result of this mismatch is unknown.

DataFlex Framework usage

  • Web
  • Windows
  • FlexTron

Sample

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

Object oPrintReportButton is a Button
    Set Label to 'Print Report'

    Procedure OnClick
        String sReportId

        Get OpenReport of oReport to sReportId
        If (sReportId <> '') Begin
            Send PrintReport of oReport
        End
    End_Procedure
End_Object