Muokkaa

Jaa


Iasphelp::getMediaReady method

The MediaReady property enables an ASP Web page to obtain a set of strings that name all of the paper forms for the printer that are currently available for use.

Syntax

HRESULT get_MediaReady(
  [out] VARIANT *pVal
);

Parameters

pVal [out]
A caller-supplied location to receive a pointer to a set of strings that name all of the paper forms for a printer that are currently available for use.

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

This method obtains a list of the names of the paper forms that are currently available for use by calling the printer driver's DrvDeviceCapabilities function with the DCMEDIAREADY flag set.

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

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

Requirements

Target platform: Desktop

See also

DrvDeviceCapabilities

Iasphelp::Open