Iasphelp::getJobCompletionMinute method

The JobCompletionMinute property enables an ASP Web page to determine when the print jobs that are currently pending will be finished.

Syntax

HRESULT get_JobCompletionMinute(
  [out] long *pVal
);

Parameters

pVal [out]
A caller-supplied pointer to a memory location that receives the required time, in minutes, for all print jobs that are currently pending completion.

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. To determine the number of pending print jobs, query the Iasphelp::PendingJobCount property.

Dim objPrinter, EndMinute
strPrinter = Session("MS_printer")
Set objPrinter = Server.CreateObject ("OlePrn.AspHelp")
objPrinter.Open strPrinter
objPrinter.CalcJobETA
EndMinute = objPrinter.JobCompletionMinute

Requirements

Target platform: Desktop

See also

Iasphelp::Open

Iasphelp::CalcJobETA

Iasphelp::PendingJobCount