Job : factory.printing.printerControl().Jobs.Item(n)

Description

Represents a single job in the queue for a printer. A job is obtained from the list of print jobs available on a printer.

Syntax

oJob = printerControl.Jobs.Item(nIndex)

Properties

All properties are read only:

PropertyDescripion
document Specifies the name of the print job, typically the title of the html document that has been printed.
machineName Specifies the name of the machine that created the print job.
pagesPrinted Specifies the number of pages that have printed. This value may be zero if the print job does not contain page delimiting information.
position Specifies the job's position in the print queue.
printerName Specifies the name of the printer for which the job is spooled.
size Specifies the size, in bytes, of the job.
status Specifies the job status, can be one or more of the following values:
Meaning Value
JOB_STATUS_PAUSED 0x00000001
JOB_STATUS_ERROR 0x00000002
JOB_STATUS_DELETING 0x00000004
JOB_STATUS_SPOOLING 0x00000008
JOB_STATUS_PRINTING 0x00000010
JOB_STATUS_OFFLINE 0x00000020
JOB_STATUS_PAPEROUT 0x00000040
JOB_STATUS_PRINTED 0x00000080
JOB_STATUS_DELETED 0x00000100
JOB_STATUS_BLOCKED_DEVQ 0x00000200
JOB_STATUS_USER_INTERVENTION 0x00000400
JOB_STATUS_RESTART 0x00000800
statusText A string containing a description of the status. This may be provided by the printer driver or may be generated by ScriptX from the value ofstatus.If generated by ScriptX the description is in English only.
submittedAt Specifies the time when the job was submitted.
totalPages Specifies the number of pages required for the job. This value may be zero if the print job does not contain page delimiting information.
userName Specifies the name of the user who owns the print job.

The value of all properties are determined at the time that the Jobs collection is created, no properties are dynamic (for example a loop inspecting the value of pages Printed will not see the value decrease as might be expected).

Methods

Delete, Pause, Restart, Resume