Export (0) Print
Expand All

PrintQueue.AddJob Method

Inserts a new print job into the queue.

Name Description
PrintQueue.AddJob () Inserts a new (generically named) print job, whose content is a Byte array, into the queue.
PrintQueue.AddJob (String) Inserts a new print job, whose content is a Byte array, into the queue.
PrintQueue.AddJob (String, String, Boolean) Inserts a new print job for an XML Paper Specification (XPS) Document into the queue, gives it the specified String as a name, and specifies whether or not it should be validated.

Unless the queue is paused or in some kind of error state, the job will print 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.

Community Additions

ADD
Show:
© 2014 Microsoft