Skip to content

peMediaType - cPrintDialog

Methods - Properties

Type

Short

Default

0

Arguments

None

Description

Specifies the type of media being printed on.

The member can be one of the predefined DMMEDIA_* constants, or a driver-defined value greater than or equal to the value of DMMEDIA_USER.

Sample

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

    Procedure OnInitializeReport
        Handle hoPrintDialog

        Forward Send OnInitializeReport

        Get phoPrintDialog to hoPrintDialog
        Set peMediaType of hoPrintDialog to DMMEDIA_STANDARD
    End_Procedure
End_Object