Iasphelp::getMaximumResolution method
The MaximumResolution property enables an ASP Web page to determine a printer's maximum resolution.
Syntax
HRESULT get_MaximumResolution(
[out] long *pVal
);
Parameters
pVal [out]
Caller-supplied location to receive a numeric value representing the printer's maximum resolution, in dots per inch.
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 Iasphelp::Open method must be called before the Iasphelp::MaximumResolution property can be queried.
Dim objPrinter, MaxRes
strPrinter = Session("MS_printer")
Set objPrinter = Server.CreateObject ("OlePrn.AspHelp")
objPrinter.Open strPrinter
MaxRes = objPrinter.MaximumResolution
Requirements
Target platform: Desktop