Export (0) Print
Expand All

PrintQueue.AddJob Method (String, String, Boolean, PrintTicket)

.NET Framework 4.5

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.

For more information, see AddJob(String, String, Boolean).

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft