deviceSupports method

Checks whether the printer supports a specified feature.

Syntax


HRESULT retVal = object.deviceSupports(bstrProperty, pvar);

Parameters

bstrProperty [in]

Type: BSTR

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

copies

Number of copies supported.

collate

Support for collating.

duplex

Support for duplex printing.

pvar [out, retval]

Type: VARIANT

Pointer to a VARIANT value that receives the information requested.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

ITemplatePrinter2::deviceSupports was introduced in Microsoft Internet Explorer 6.

The type of information received by pvar depends on which property you query for, as indicated in the following table.

copiesint value that indicates the number of copies the printer can make.
collateBOOL value that indicates whether the printer supports collating.
duplexBOOL value that indicates whether the printer supports duplex printing.

 

 

 

Show: