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

Printer.DriverName Property (Access)

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

Returns a String indicating the name of the driver used by the specified printer. Read-only.

Syntax

expression. DriverName

expression A variable that represents a Printer object.

Example

The following example displays information about all the printers available to the 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

Printer Object

© 2018 Microsoft