Iasphelp::CalcJobETA method
The CalcJobETA method enables an ASP Web page to calculate the time at which a print job is to be completed.
Syntax
HRESULT CalcJobETA();
Parameters
This method has no parameters.
Return value
The following table shows possible return values for this method.
Return code | Description |
---|---|
S_OK | The method succeeded. |
E_HANDLE | The Iasphelp::Open method has not been called. |
E_OUTOFMEMORY | Out of memory. |
VBScript Example
The CalcJobETA method calculates print job information that can be subsequently retrieved by using Iasphelp properties. Call CalcJobETA before getting any of the following properties:
Before CalcJobETA is called, the value of any of these properties is zero. If CalcJobETA determines that the printer rate is not available for the current printer, a subsequent call to JobCompletionMinute retrieves the value -1.
The Iasphelp::Open method must be called before the CalcJobETA method can be called.
Dim objPrinter
strPrinter = Session("MS_printer")
Set objPrinter = Server.CreateObject ("OlePrn.AspHelp")
objPrinter.Open strPrinter
objPrinter.CalcJobETA
Requirements
Target platform: Desktop