Stores information about a specified set of print jobs for a specified printer into an array.
APrintJobs(cArrayName, cPrinter [, nLevel])
Parameters
- cArrayName
if nLevel = 1
the array contains the following information from the JOB_INFO_1 structure. Column Content Datatype 1 Name of the print job. C 2 Name of the printer for which the job is spooled. C 3 Name of the user that owns the print job. C 4 Name of the machine that created the print job. C 5 The type of data used to record the print job. C 6 The status of the print job. C 7 A job identifier. N 8 The job status. For a list of possible values have a look here JOB_INFO_1. N 9 The job priority. For a list of possible values have a look here JOB_INFO_1. N 10 The job's position in the print queue. N 11 The total number of pages that the document contains.
This value may be zero if the print job does not contain page delimiting information.N 12 The number of pages that have printed.
This value may be zero if the print job does not contain page delimiting information.N 13 The time that this document was spooled.
This time value is in Universal Time Coordinate (UTC) format. You should convert it to a local time value before displaying it.
You can use the UTC2DT function to perform the conversion.T
if nLevel = 2the array contains the following additional information from the JOB_INFO_2 structure. Column Content Datatype 14 The name of the user who should be notified when the job has been printed or when an error occurs while printing the job. C 15 The name of the print processor that should be used to print the job. C 16 Print-processor parameters. C 17 The name of the printer driver that should be used to process the print job. C 18 The total time, in milliseconds, that has elapsed since the job began printing. N 19 The earliest time that the job can be printed. N 20 The latest time that the job can be printed. N 21 The size, in bytes, of the job. N
- cPrinter
Name of the printer for which to enumerate the printjobs.
- nLevel (optional)
default = 1
The level of information to return, either 1 or 2.
Return Value
The number of print jobs.
See Also
Reference
APaperSizes
APrinterForms
APrintersEx
APrinterTrays