Chapter 2 -- 27
Reference Guide
"
""
" PrinterSystem.Ports
VTS_DISPATCH or Strings
Ports ().
Retrieves all installed ports on the system.
"
""
" PrinterSystem.Add
VTS_BSTR or String
Add (strPrinterName, strPortName,
boolDirectAccess)
Installs a new printer and returns the full name assigned to it.
Parameters:
strPrinterName Required VT_BSTR or String
.PrinterName
to install (got with Printers.InternalPrinters).
strPortName Required VT_BSTR or String
.PortName
associated with the printer.
boolDirectAccess Optional VT_BOOL or Boolean
(default value
FALSE). Is the port used with direct access or not.
Note
Only models can be installed with this method.
"
""
" PrinterSystem.Remove
VTS_NONE Remove (strPrinterPortName).
Removes an installed printer.
Parameters:
strPrinterPortName Required VT_BSTR or String.
Full name of
an installed printer (got with PrinterSystem.Printers(lppxInter-
nalPrinters) method).
Note
Only models can be removed.
If an active document uses this printer, the operation fails.