|Publisher Developer Reference|
Version Added: Publisher 2007
Many of the properties, such as PaperSize, PaperSource, and PaperOrientation, of the Printer object correspond to the settings in the Print Setup dialog box (File menu) in the Microsoft Office Publisher user interface .
The collection of all the printers installed on your computer is represented by the InstalledPrinters collection.
The following Microsoft Visual Basic for Applications (VBA) macro shows how you can use the PrinterName and IsActivePrinter properties of the Printer object to get a list of all the installed printers on the computer, determine which of them is currently the active printer, and get some of the settings of the active printer. The macro displays the results in the Immediate window.
|Visual Basic for Applications|