PrintQueue.AddJob Method

Inserts a new print job into the queue.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  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.
Top

Unless the queue is paused or in an error state, the job prints when it reaches the top of the queue, so this is a printing function.

Other ways to print in Windows Presentation Foundation (WPF) include the PrintDialog.PrintDocument method, which can be used with or without opening the dialog, and the many Write and WriteAsync methods of the XpsDocumentWriter.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft