Printers

Printer management

SYNOPSIS

package require twapi_printer
enumerate_printers ?-proximity PROXIMITY?
get_default_printer

DESCRIPTION

This module provides commands related to Windows printer management.

Printer Management

The command enumerate_printers returns all the printers on the system. The command get_default_printer returns the name of the default printer.

Commands

enumerate_printers ?-proximity PROXIMITY?
Returns information about the printers on the system. The data is returned as a record array with the following fields:
-name The following value is the name of the printer.
-server The following value is the server on which the printer resides.
-attrs The following value is a list of attributes for the printer. This is a list of zero or more symbols from the following list: queued, direct, default, shared, network, hidden, local, enabledevq, keepprintedjobs, docompletefirst, workoffline, enablebidi, rawonly, published, fax, ts. Refer to the Windows SDK documentation for the meaning of these attributes.
PROXIMITY may be one of all (default), local or remote depending on whether all printers, local printers or remote printers are to be included in the returned list.
get_default_printer
Returns the name of the default printer.

COPYRIGHT

Copyright © 2006-2009 Ashok P. Nadkarni

Tcl Windows API 4.0.61