Click or drag to resize

XmlPrinterPrint Method (String, Stream, String, String, Stream)

Print template formats using XML as input data to destinationDevice.

Namespace:  Zebra.Sdk.Printer
Assembly:  SdkApi_Core (in SdkApi_Core.dll) Version: 2.14.1989
Syntax
public static void Print(
	string destinationDevice,
	Stream sourceDataStream,
	string templateFilename,
	string defaultQuantityString,
	Stream outputDataStream
)

Parameters

destinationDevice
Type: SystemString
The connection string.
sourceDataStream
Type: System.IOStream
The source stream containing the XML.
templateFilename
Type: SystemString
The template to merge the XML to.
defaultQuantityString
Type: SystemString
The quantity, if not specified in the data.
outputDataStream
Type: System.IOStream
Optional stream to send data to.
See ConnectionBuilder for the format of destinationDevice
Exceptions
ExceptionCondition
IOExceptionIf an I/O error occurs.
ConnectionExceptionIf it was not possible to connect to the device.
ArgumentExceptionIf there is an issue with the arguments.
See Also