deviceSupports method

Checks whether the printer supports a specified feature.

Syntax

var retval = TemplatePrinter.deviceSupports(bstrTitle);

Parameters

bstrTitle [in]

Type: BSTR

A String that indicates which property to query. This parameter can be set to one of the following three strings.

VARIANT_FALSE (copies)

Number of copies supported.

VARIANT_TRUE (collate)

Support for collating.

VARIANT_TRUE (duplex)

Support for duplex printing.

Return value

Type: Variant

Variant. Returns the requested information.

Remarks

deviceSupports was introduced in Microsoft Internet Explorer 6.

The type of information returned by this method depends on which property you query for.

copies An Integer value indicating how many copies the printer can make.
collate A Boolean value indicating whether the printer can collate.
duplex A Boolean value indicating whether the printer supports duplex printing.