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 (String, String, Boolean, PrintTicket)

.NET Framework (current version)
 
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 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.

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

public PrintSystemJobInfo AddJob(
	string jobName,
	string documentPath,
	bool fastCopy,
	PrintTicket printTicket
)

Parameters

jobName
Type: System.String

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

documentPath
Type: System.String

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

fastCopy
Type: System.Boolean

true to spool quickly without page-by-page progress feedback and without validating that the file is valid XPS; otherwise, false.

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.

.NET Framework
Available since 4.5
Return to top
Show:
© 2018 Microsoft