PrintJob Members

PrintJob overview

Public Constructors

public constructorPrintJob Constructor Initializes a new instance of the PrintJob class.

Public Properties

public readonly property PrinterName The device name of the printer that this job is queued on
public readonly property Username The name of the user who posted this print job
public readonly property MachineName The name of the machine from which this print job was posted
public property Document The name of the document from which this print job was posted
public readonly property StatusDescription The text description of the print job status e.g. Printing, Paused etc.
public readonly property DataType The data type of the spool file e.g. RAW, EMF etc.
public readonly property TotalPages The total number of pages in this print job
public readonly property PagesPrinted The number of pages already printed out
public property Position The job's position in the printer queue
public readonly property PaperKind The page size (using the PaperKind enumeration)
public readonly property PaperWidth The physical page width (when the PaperKind is PaperKind.Custom)
public readonly property PaperLength The physical page height (when the PaperKind is PaperKind.Custom)
public readonly property Landscape True if the print job is to be printed in landscape mode
public readonly property Color True if the print job is to be printed in color mode
public readonly property PaperSource Returns the PaperSourceKind selected for this print job
public readonly property PrinterResolutionKind Returns the PrinterResolutionKind set for this print job
public readonly property PrinterResolutionX The printer resolution in the X axis for this print job (where PrinterResolutionKind is set to PrinterResolutionKind.Custom)
public readonly property PrinterResolutionY The printer resolution in the Y axis for this print job (where PrinterResolutionKind is set to PrinterResolutionKind.Custom)
public readonly property Copies The number of copies of this job to print
public property NotifyUserName The name of the user to notify when the job is printed or with any other job information.
public readonly property PrintProcessorName The name of the print processor handling this print job
public readonly property Drivername The name of the printer driver that is handling this print job
public property Priority A value between 1 (lowest) to 99 (highest) that is the priority of this print job. Jobs with higher priority will be printed ahead of those with lower priorities.
public readonly property Parameters The driver specific parameters passed with this print job
public readonly property Submitted The date and time that this job was submitted for printing
public readonly property TimeWindow The earliest and latest time that this job can be printed. This may be Unrestricted if there is no specified time window that this print job must print in
public readonly property JobSize The size (in bytes) of the print job

The following properties describe the status of the print job

public property Paused True if the print job is paused.
public readonly property Deleted True if the job has been deleted
public readonly property Deleting True if the job is currently being deleted
public readonly property Printed True if the job has been printed
public readonly property Printing True if the job is printing
public readonly property InError True if the job has an error
public readonly property Offline True if the printer on which the job is queued is offline
public readonly property PaperOut True if the printer on which the job is queued is out of paper
public readonly property UserInterventionRequired True if the print job is waiting for user intervention

Public Methods

public method Cancel Cancels the print job
public method Delete Deletes the print job
public method Commit Commits changes made to the PrintJob to the spooler

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

See Also

PrintJob Class