Click or drag to resize

PrinterUtilSendContents Method (String, Stream, String)

Send contents of data directly to the device specified via connectionString using encoding.

Namespace:  Zebra.Sdk.Printer
Assembly:  SdkApi_Core (in SdkApi_Core.dll) Version: 2.14.1869
Syntax
public static void SendContents(
	string connectionString,
	Stream data,
	string encoding
)

Parameters

connectionString
Type: SystemString
The connection string.
data
Type: System.IOStream
Data to send to the printer.
encoding
Type: SystemString
A character-encoding name (eg. UTF-8).
Exceptions
ExceptionCondition
IOExceptionIf there is an error encoding data.
ConnectionExceptionIf there is an error communicating with the printer.
Remarks
See ConnectionBuilder for the format of connectionString.
See Also