Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.Printers Property (Access)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Returns the Printers collection representing all the available printers on the current system. Read-only Printers collection.

Syntax

expression. Printers

expression A variable that represents an Application object.

Example

The following example displays information about all the printers available on the current system.

Dim prtLoop As Printer 

For Each prtLoop In Application.Printers 
 With prtLoop 
 MsgBox "Device name: " &; .DeviceName &; vbCr _ 
 &; "Driver name: " &; .DriverName &; vbCr _ 
 &; "Port: " &; .Port 
 End With 
Next prtLoop 

See also

Concepts

Application Object

© 2018 Microsoft