setPrinterPort (print applet)

Syntax

boolean setPrinterPort(String port)

Description

The setPrinterPort method lets you set the client device's printer port. setPrinterPort reports success or failure by returning true or false.

Note This method has no effect on UNIX systems.

Examples

setPrinterPort("\\brussels\tta");

Sets the printer port to the Windows printer \\brussels\tta (this applies only to client devices running Microsoft Windows).

Related topics
  • Print applet
  • getPrinterPort (print applet)