Iasphelp::get_IsHTTP method
The IsHTTP property enables an ASP Web page to determine whether the printer is connected to an HTTP port.
Syntax
HRESULT get_IsHTTP(
[out] BOOL *pVal
);
Parameters
pVal [out]
A caller-supplied pointer to a memory location that receives TRUE if the printer is connected to an HTTP port, and FALSE otherwise.
Return value
The property return 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 Iasphelp::Open method must be called before the Iasphelp::IsHTTP property can be queried.
Dim objPrinter, IsHTTPPort
strPrinter = Session("MS_printer")
Set objPrinter = Server.CreateObject ("OlePrn.AspHelp")
objPrinter.Open strPrinter
IsHTTPPort = objPrinter.IsHTTP
Requirements
Target platform: Desktop