PortName Property
The PortName property contains the name(s) of the printer port(s) used to transmit data to the printer.
Syntax
[str=] SiteKiosk.Printer.Printers.Item(index).PortName
|
Possible Values
String that retrieves the port name(s).
|
The property is read only.
Remarks
If a printer is connected to more than one port, the names of each port are separated by commas (for example, "LPT1:,LPT2:,LPT3:").
See PRINTER_INFO_2 (MSDN) for further information.
Examples
The following example displays the name(s) of the printer port(s) of the first available printer.
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
alert(SiteKiosk.Printer.Printers.Item(1).PortName);
</SCRIPT>
|
Applies to
SiteKiosk v6.2 (and later versions).
Back to top