ControlJob

 

Pauses, resumes or deletes a job from the queue.

 

ControlJob(PrinterName As String, JobID As Long, Command As Short) As Long

 

Input values: PrinterName             - The name of the printer

JobInfo                       - The JobInfo value returned by the GetJobInfo() method

Command     - the command to control the printer. Can be one of the following values:

           

Defined command name

Value

JOB_CONTROL_PAUSE

1

JOB_CONTROL_RESUME

2

JOB_CONTROL_RESTART

4

JOB_CONTROL_DELETE

5