Iasphelp::get_PageRate method
The PageRate property enables an ASP Web page to determine a printer's page rate.
Syntax
HRESULT get_PageRate(
[out] long *pVal
);
Parameters
pVal [out]
A caller-supplied location to receive a numeric value that represents the page rate for the printer. The units in which the page rate is expressed might depend on the printer. For more information about page rates, see the following Remarks section.
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
To determine the units in which the page rate is measured, query the Iasphelp::PageRateUnit property.
The Iasphelp::Open method must be called before the Iasphelp::PageRate property can be queried.
Dim objPrinter, PtrPageRate
strPrinter = Session("MS_printer")
Set objPrinter = Server.CreateObject ("OlePrn.AspHelp")
objPrinter.Open strPrinter
PtrPageRate = objPrinter.PageRate
Requirements
Target platform: Desktop