Skip past navigation linksSecure Global Desktop 4.31 Administration Guide > Applets > setPrinterType (print applet)

setPrinterType (print applet)

Syntax

Skip past command syntax or program codeboolean 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

Skip past command syntax or program codesetPrinterType("PostScript");

Sets the printer type to PostScript.

Related topics