PrinterDefault Property (ACommonDialog)

Returns or sets an option that determines if the user's selections in the Print dialog box are used to change the system's default printer settings.

Syntax

Object.PrinterDefault [ = bPrinterDefault ]

The PrinterDefault property syntax has the following parts:

 

Name

Type

Description

Object

ACommonDialog

ACommonDialog control

bPrinterDefault

Bool

A boolean expression that specifies if the user's selections in the Print dialog box are used to change the system's default printer settings.

Where

bPrinterDefault can be one of the following:

 

Value

Description

True *

Any selections the user makes in the Setup portion of the Print dialog box (printer selection, orientation, and so on) are used to change the printer settings in the system's registry.

False

User's selections cannot be used to change the system's default printer settings.

Comments

You must use the graphic device interface (GDI) calls to print to the printer specified by the control's hDC property.

Example

The following example will set the PrinterDefault so the user's selections cannot be used to change the system's default printer settings:

cdlg1.PrinterDefault=False

Applies to

ACommonDialog

See Also

Orientation, PrintOptions, ShowPrint