Export (0) Print
Expand All

PrintQueue Methods

The PrintQueue type exposes the following members.

  Name Description
Public method AddJob() Inserts a new (generically named) print job, whose content is a Byte array, into the queue.
Public method AddJob(String) Inserts a new print job, whose content is a Byte array, into the queue.
Public method AddJob(String, PrintTicket) Inserts a new print job for an XML Paper Specification (XPS) Document into the queue, and gives it the specified name and settings.
Public method AddJob(String, String, Boolean) Inserts a new print job for an XML Paper Specification (XPS) Document into the queue, gives it the specified name, and specifies whether or not it should be validated.
Public method AddJob(String, String, Boolean, PrintTicket) Inserts a new print job for an XML Paper Specification (XPS) Document into the queue, gives it the specified name and settings, and specifies whether or not it should be validated.
Public method Commit Writes the current properties of the PrintQueue object to the actual print queue on the print server. (Overrides PrintSystemObject.Commit().)
Public method Static member CreateXpsDocumentWriter(PrintDocumentImageableArea) Creates an XpsDocumentWriter object, opens a Windows common print dialog and returns a ref (ByRef in Visual Basic) parameter that represents information about the imageable area and the dimensions of the media.
Public method Static member CreateXpsDocumentWriter(PrintQueue) Creates an XpsDocumentWriter object and associates it with the specified print queue.
Public method Static member CreateXpsDocumentWriter(Double, Double) Creates an XpsDocumentWriter object with the specified dimensions.
Public method Static member CreateXpsDocumentWriter(String, PrintDocumentImageableArea) Creates an XpsDocumentWriter object, opens a Windows common print dialog (and provides it a job description) and returns a ref (ByRef in Visual Basic) parameter that represents information about the imageable area and the dimensions of the media.
Public method Static member CreateXpsDocumentWriter(PrintDocumentImageableArea, PageRangeSelection, PageRange) Creates an XpsDocumentWriter object, opens a Windows common print dialog, provides the dialog with a page range and a description of the print job, and returns a ref (ByRef in Visual Basic) parameter that represents information about the imageable area and the dimensions of the media.
Public method Static member CreateXpsDocumentWriter(String, PrintDocumentImageableArea, PageRangeSelection, PageRange) Creates an XpsDocumentWriter object, opens a Windows common print dialog, provides the dialog with a page range, and returns a ref (ByRef in Visual Basic) parameter that represents information about the imageable area and the dimensions of the media.
Public method Dispose() Releases all resources used by the PrintSystemObject. (Inherited from PrintSystemObject.)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the PrintSystemObject and optionally releases the managed resources. (Inherited from PrintSystemObject.)
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Releases the resources that are being used by the PrintSystemObject. (Inherited from PrintSystemObject.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetJob Gets the print job with the specified ID number.
Public method GetPrintCapabilities() Gets a PrintCapabilities object that identifies the capabilities of the printer.
Public method GetPrintCapabilities(PrintTicket) Gets a PrintCapabilities object that identifies the capabilities of the printer.
Public method GetPrintCapabilitiesAsXml() Gets a MemoryStream object that specifies the printer's capabilities as an XML stream that complies with the Print Schema.
Public method GetPrintCapabilitiesAsXml(PrintTicket) Gets a MemoryStream object that specifies the printer's capabilities in an XML format that complies with the Print Schema.
Public method GetPrintJobInfoCollection Creates a collection that contains a PrintSystemJobInfo object for each job in the queue.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method Initialize Initializes the properties of the PrintSystemObject. (Inherited from PrintSystemObject.)
Protected method InternalDispose Releases the unmanaged resources used by the PrintQueue and optionally releases the managed resources. (Overrides PrintSystemObject.InternalDispose(Boolean).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method MergeAndValidatePrintTicket(PrintTicket, PrintTicket) Merges two PrintTickets and guarantees that the resulting PrintTicket is valid and does not ask for any printing functionality that the printer does not support.
Public method MergeAndValidatePrintTicket(PrintTicket, PrintTicket, PrintTicketScope) Merges two PrintTickets and guarantees that the resulting PrintTicket is valid, does not ask for any printing functionality that the printer does not support, and is limited to the specified scope.
Public method Pause Pauses the print queue. It remains paused until Resume is executed.
Public method Purge Removes all the jobs in the print queue.
Public method Refresh Updates the properties of the PrintQueue object with values from the printer and the print queue utility that runs on the computer. (Overrides PrintSystemObject.Refresh().)
Public method Resume Restarts a print queue that was paused.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Show:
© 2014 Microsoft