PrintQueue.AddJob Method (String, PrintTicket)

.NET Framework 4.6 and 4.5

Inserts a new print job for an XML Paper Specification (XPS) Document into the queue, and gives it the specified name and settings.

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

public PrintSystemJobInfo AddJob(
	string jobName,
	PrintTicket printTicket
)

Parameters

jobName
Type: System.String

The path and name of the document that is being printed.

printTicket
Type: System.Printing.PrintTicket

The settings of the print job.

Return Value

Type: System.Printing.PrintSystemJobInfo
A PrintSystemJobInfo that represents the print job and its status.

For more information, see AddJob(String).

.NET Framework

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft