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.
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. |
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. |
You must use the graphic device interface (GDI) calls to print to the printer specified by the control's hDC property.
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