Muokkaa

Jaa


Iasphelp::get_PaperNames method

The PaperNames property enables an ASP Web page to obtain a set of strings that name all the paper forms for the printer.

Syntax

HRESULT get_PaperNames(
  [out] VARIANT *pVal
);

Parameters

pVal [out]
Caller-supplied location to receive a pointer to a set of strings representing all the paper forms for the printer.

Return value

This property returns one of the values in the following table.

Return code Description
S_OK The operation succeeded.
E_HANDLE The Iasphelp::Open method has not been called.
E_OUTOFMEMORY Out of memory.

VBScript Example

The handler for this property obtains the list of paper forms by calling the printer driver's DrvDeviceCapabilities function with the DC_PAPERNAMES flag set.

The Iasphelp::Open method must be called before the Iasphelp::PaperNames property can be queried.

Dim objPrinter, PaperNameArray
strPrinter = Session("MS_printer")
Set objPrinter = Server.CreateObject ("OlePrn.AspHelp")
objPrinter.Open strPrinter
PaperNameArray = objPrinter.PaperNames

Requirements

Target platform: Desktop

See also

DrvDeviceCapabilities

Iasphelp::Open