Skip to content

piPaperWidth - cPrintDialog

Methods - Properties

Type

Short

Default

0

Arguments

None

Description

Can be used to override the pePaperSize setting. The value is in tenths of millimeter.

Sample

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

    Procedure OnInitializeReport
        Handle hoPrintDialog

        Forward Send OnInitializeReport

        Get phoPrintDialog to hoPrintDialog
        Set piPaperWidth of hoPrintDialog to 210
    End_Procedure
End_Object