Printer.DriverName 属性 (Access)

返回一个指示指定打印机所使用的驱动程序名称的 字符串 。 此为只读属性。

语法

表达式DriverName

表达 一个代表 Printer 对象的变量。

示例

下面的示例显示有关系统中所有可用打印机的信息。

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

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。