Redigera

Dela via


PrintTicketConverter(String, Int32) Constructor

Definition

Initializes a new instance of the PrintTicketConverter class for the specified printer.

public:
 PrintTicketConverter(System::String ^ deviceName, int clientPrintSchemaVersion);
public PrintTicketConverter (string deviceName, int clientPrintSchemaVersion);
new System.Printing.Interop.PrintTicketConverter : string * int -> System.Printing.Interop.PrintTicketConverter
Public Sub New (deviceName As String, clientPrintSchemaVersion As Integer)

Parameters

deviceName
String

The name of the printer that is bound to the new PrintTicketConverter instance.

clientPrintSchemaVersion
Int32

The Print Schema version to use in the PrintTicket and DEVMODE conversion.

Exceptions

deviceName is null.

clientPrintSchemaVersion is 0 or less.

The converter was unable to bind to deviceName.

Remarks

For more information on the DEVMODE structure, see DEVMODE.

Applies to

See also