Skip to content

ReadPrinterDevMode - cPrintDialog

Methods - Properties

Method Type

Function

Arguments

Argument Description
sPrinterName Name of one of the printers in the environment

Description

Calls the DRPrinterDevMode function with the passed printer name and returns either PD_RESULT_PRINT or PD_RESULT_CANCEL.

DRPrinterDevMode attempts to open the printer for information and reads the DEVMODEW data.

When PD_RESULT_CANCEL is returned, the psDeviceName is set to '' (blank string).