Iasphelp::get_AspPage method

The AspPage property enables an ASP Web page to obtain the directory path to the initial ASP file used for describing printer-specific details.

Syntax

HRESULT get_AspPage(
  [in]  DWORD dwPage,
  [out] BSTR  *pVal
);

Parameters

dwPage [in]
Must be 1.

pVal [out]
Caller-supplied pointer to a location to receive a size-prefixed Unicode string specifying the directory path to the initial Web page describing printer-specific details.

Return value

This method can return one of these values.

Return code Description
S_OK The operation succeeded.
E_HANDLE Iasphelp::Open method has not been called.
E_NOTIMPL An ASP file is not available.
E_POINTER Invalid pVal pointer.

VBScript Example

To determine where to find the page's ASP file, the method uses the algorithm described in Which Printer Details Page is Displayed?.

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

    Dim objPrinter, strPrinter, str
    strPrinter = Session("MS_printer")
    Set objPrinter = Server.CreateObject ("OlePrn.AspHelp")
    objPrinter.Open strPrinter
    str = objPrinter.ASPPage(1)

Requirements

Target platform: Desktop

See also

Iasphelp::Open