Muokkaa

Jaa


Iasphelp::get_AvgJobSizeUnit method

The AvgJobSizeUnit property enables an ASP Web page to determine the units of the average job size.

Syntax

HRESULT get_AvgJobSizeUnit(
  [out] long *pVal
);

Parameters

pVal [out]
A caller-supplied pointer to a memory location that receives one of the values in the following table. The value indicates the units that are associated with the average job size.

Value Meaning
1 Units of average job size are in pages per job.
2 Units of average job size are in bytes per job.

Return value

This method returns S_OK on success.

VBScript Example

Query the Iasphelp::AvgJobSizeUnit property to determine the units in which the Iasphelp::AvgJobSize property value is expressed.

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

Dim objPrinter, strPrinter, JobUnits
strPrinter = Session("MS_printer")
Set objPrinter = Server.CreateObject ("OlePrn.AspHelp")
objPrinter.Open strPrinter
objPrinter.CalcJobETA
JobUnits = objPrinter.AvgJobSizeUnit
' If JobUnits = 1 then job size is in units of pages
' If JobUnits = 2 then job size is in units of bytes

Requirements

Target platform: Desktop

See also

Iasphelp::AvgJobSize

Iasphelp::CalcJobETA