Harbour Reference Guide

cupsGetDefault()Source code  |  | Improve this doc

Returns the CUPS name of the default printer.
Syntax
cupsGetDefault() → cPrinterName
Description

Returns the CUPS name of the default printer on the default server, or an empty string if no printer is configured as default printer.

Refer to the CUPS documentation for more details of these operations, including a list of valid printing options.

Status
Ready
Compliance
cups
Platforms
*nix
File
Library is hbcups
Tag
API

cupsGetDests()Source code  |  | Improve this doc

Returns a list of all CUPS printers.
Syntax
cupsGetDests() → aPrinterNames
Description

Returns a list of all CUPS printers on the default server.

Refer to the CUPS documentation for more details of these operations, including a list of valid printing options.

Status
Ready
Compliance
cups
Platforms
*nix
File
Library is hbcups
Tag
API

cupsPrintFile()Source code  |  | Improve this doc

Prints the named file on the named printer.
Syntax
cupsPrintFile( <cPrinterName>, <cFileName>, <cTitle>, [ <aOptions> | <hOptions> ] )
  → nJobNumber
Description

Prints the named file on the named printer (on the default server), using the given title. Options may be passed as an array of strings of the form "option=value" or as a hash of options and values (again expressed as character strings). Returns the job number, or 0 on error.

Refer to the CUPS documentation for more details of these operations, including a list of valid printing options.

Status
Ready
Compliance
cups
Platforms
*nix
File
Library is hbcups
Tag
API