Iasphelp::get_PendingJobCount method

The PendingJobCount property enables an ASP Web page to determine the number of pending print jobs.

Syntax

HRESULT get_PendingJobCount(
  [out] long *pVal
);

Parameters

pVal [out]
A caller-supplied pointer to a memory location that receives the number of pending print jobs.

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

Before you query this property, call the Iasphelp::CalcJobETA method to initialize the property value.

Dim objPrinter
strPrinter = Session("MS_printer")
Set objPrinter = Server.CreateObject ("OlePrn.AspHelp")
objPrinter.Open strPrinter
objPrinter.CalcJobETA
PendingJobs = objPrinter.PendingJobCount

Requirements

Target platform: Desktop

See also

Iasphelp::Open

Iasphelp::CalcJobETA