Object Model Reference : Classes : P : Printer : Properties : Printer.PostScriptEnabled |
Property PostScriptEnabled As Boolean
Member of Printer
The PostScriptEnabled property returns whether a printer can print PostScript.
The PostScriptEnabled property returns a read-only value.
The following VBA example displays a message box for each printer that can print PostScript.
Sub Test() |
Dim intCounter As Integer |
Dim Prn As Printer |
For intCounter = 1 To Printers.Count |
Set Prn = Printers(intCounter) |
If Prn.PostScriptEnabled = True Then |
MsgBox "The " & Prn.Type & " is able to print PostScript." |
End If |
Next intCounter |
Set Prn = Nothing |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.