Printer Object
 
Syntax
 
Printer.Setup = vsPrintDialogSettings
 
Description
Displays a printer selection or page setup dialog.
 
This method displays a standard Print, Printer Setup, or Page Setup dialog, depending on the setting of the DialogType parameter.
 
Parameter
Description
vsPrintDialogSettings
This parameter contains the following pre-defined constants and values:
 
Constant
Value
Description
pdPrinterSetup
0
Displays a Printer Setup dialog. This dialog is normally used before the document is created, to select the target printer, paper size, and orientation.
pdPageSetup
1
Displays a Page Setup dialog. This dialog is normally used before the document is created, to select margins, paper size, and orientation.
pdPrint
2
Displays a Print dialog. This dialog is used after the document is ready, to select the range of pages to print and number of copies. (If the document is empty, this parameter displays a Printer Setup dialog instead).
 
See Also
Example