Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PrintQueue.AddJob Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Inserts a new print job into the queue.

Namespace:   System.Printing
Assembly:  System.Printing (in System.Printing.dll)

NameDescription
System_CAPS_pubmethodAddJob()

Inserts a new (generically named) print job, whose content is a Byte array, into the queue.

System_CAPS_pubmethodAddJob(String)

Inserts a new print job, whose content is a Byte array, into the queue.

System_CAPS_pubmethodAddJob(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.

System_CAPS_pubmethodAddJob(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.

System_CAPS_pubmethodAddJob(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.

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.

Return to top
Show:
© 2018 Microsoft