Click or drag to resize

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

Print template formats using XML as input data to a device with connection string destinationDevice.

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

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.
verbose
Type: SystemBoolean
If true, print a running commentary to standard out.
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