printString
Description
Sends the specified text directly to the printer. The string is not rendered in any way, its is sent to the printer for the printer to interpret. In this way, label printing commands or (say) postscript can be sent directly to the printer.
This method is synchronous; it will not return until the print is complete.
Syntax
rawPrinting.printString(sText)
Parameter | Description |
---|---|
sText | (String) text to print. The string is converted from Unicode to an ANSI string (bytes) and sent as-is to the printer. |
Example
The following simple but complete example shows how to print a label to a Zebra printer: