Table of contents
TOC
折叠目录
展开目录

Printer.DriverName 属性 (访问)Printer.DriverName Property (Access)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

返回一个指示指定打印机所使用的驱动程序名称的字符串。只读的。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