Skip to content

pePaperSize - cPrintDialog

Methods - Properties

Type

Short

Default

0

Arguments

None

Description

Selects the size of the paper to print on.

This member can be set to zero if the length and width of the paper are both set by the piPaperLength and piPaperWidth members.

Otherwise, the pePaperSize member can be set to a device-specific value greater than or equal to DMPAPER_USER or to one of the predefined DMPAPER_* constants.

Sample

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

    Procedure OnInitializeReport
        Handle hoPrintDialog

        Forward Send OnInitializeReport

        Get phoPrintDialog to hoPrintDialog
        Set pePaperSize of hoPrintDialog to DMPAPER_A4
    End_Procedure
End_Object