Specifications

POS Printer
Rev. 2.00
- 26 -
5-3-13 printBarcode
Print one-dimensional and two-dimensional bar code.
[Function prototype]
- (long)printBarcode:(char *)data
symbology:(long)symbology
width:(long)width
height:(long)height
alignment:(long)alignment
textPosition:(long)textPosition
[Parameters]
data
ANSI code data with null terminator. Transfer bar code data to print
symbology
Define bar code type.
height
Height of bar code, unit is number of dot, range is 1~255
This setting does not affect 2-dimensional bar code.
width
Width of barcode, valid range is 2~7
Barcode printing may not work properly if the width of barcode print exceeds the
printer paper width.
This setting does not affect 2-dimensional bar code.
alignment
Barcode alignment setting
Refer to 2-3 Barcode/Text Alignment
textPosition
Barcode text position setting
Refer to 2-6 Barcode Text Position
[Return Value]
Refer to 2-16 Result Code
[Availability]
SDK 0.6.0 and later