Previous Document Next Document

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


Printer.Type

Property Type As String

Description

Member of Printer

The Type property returns the model name of a printer.

The Type property returns a read-only value.

VBA example

The following VBA example displays whether the HP LaserJet 5P/5MP PostScript printer is installed.

Sub Test()
 Dim intCounter As Integer
 Dim Prn As Printer
  For intCounter = 1 To Printers.Count
   Set Prn = Printers(intCounter)
    If Prn.Type = "HP LaserJet 5P/5MP PostScript" Then
     MsgBox "The " & Prn.Type & " printer is installed."
     Exit For
  Next intCounter
 Set Prn = Nothing
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.