Previous Document Next Document

Object Model Reference : Classes : P : Printer : Properties : Printer.Name


Printer.Name

Property Name As String

Description

Member of Printer

The Name property returns the name of a printer.

The Name property returns a read-only value.

VBA example

The following VBA example lists the names of all installed printers.

Sub Test()
 Dim intCounter As Integer
 Dim Prn As Printer
 Dim s As String
  For intCounter = 1 To Printers.Count
   Set Prn = Printers(intCounter)
   s = s & Prn.Name & vbCr
  Next intCounter
 MsgBox "The following printers are installed on your system: " & vbCr & vbCr & s
 Set Prn = Nothing
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.