Secure Global Desktop Administration Guide > Applets > setPrinterType (print applet)

setPrinterType (print applet)

Syntax

boolean setPrinterType(String type)

Description

The setPrinterType method lets you set the type of the client device's default printer. Acceptable printer types are:

Note This list can be extended by modifying the file printertypes.txt. For more information, see The tta_print_converter script.

setPrinterType reports success or failure by returning true or false.

If you don't use setPrinterType, the print applet attempts to discover the printer type itself.

Examples

setPrinterType("PostScript");

Sets the printer type to PostScript.

Related topics