41
CITIZEN UWP POS Print SDK - Programming Manual
2.3.11. PrintBarCodeAsync method
Syntax
Task<int> PrintBarCodeAsync (string data, int symbology, int height, int width, int alignment, int
textPosition)
Parameter
The meaning and the setting range of the parameters are as follows.
Value
[IN/OUT]
Meaning
Setting range
data
[IN]
Barcode data
symbology
[IN]
Barcode symbol type
CMP_BCS_UPCA: UPC-A
CMP_BCS_UPCE: UPC-E
CMP_BCS_EAN8: EAN8 (=JAN8)
CMP_BCS_JAN8: JAN8 (=EAN8)
CMP_BCS_EAN13: EAN13 (=JAN13)
CMP_BCS_JAN13: JAN13 (=EAN13)
CMP_BCS_ITF: Interleaved 2 of 5
CMP_BCS_Codabar: Codabar
CMP_BCS_Code39: Code 39
CMP_BCS_Code93: Code 93
CMP_BCS_Code128: Code 128
CMP_BCS_GS1DATABAR
:
GS1 DataBar Omnidirectional
CMP_BCS_GS1DATABAR_E
:
GS1 DataBar Expanded
CMP_BCS_GS1DATABAR_T
:
GS1 DataBar Truncated
CMP_BCS_GS1DATABAR_L
:
GS1 DataBar Limited
height
[IN]
Barcode height
1 - 255 (dots)
Expressed in the unit of measure given by
width
[IN]
Barcode horizontal size
(magnification)
2 - 6 (dots)
Expressed in the unit of measure given by
alignment
[IN]
Barcode alignment
CMP_ALIGNMENT_LEFT: Left alignment
CMP_ALIGNMENT_CENTER: Center alignment
CMP_ALIGNMENT_RIGHT: Right alignment
Other Values:
Distance from the left-most print column to
the start of the barcode. Expressed in the unit
of measure given by
textPosition
[IN]
HRI characters position CMP_HRI_TEXT_NONE: No printing
CMP_HRI_TEXT_ABOVE: Above the barcode
CMP_HRI_TEXT_BELOW: Below the barcode
Description
This method is used to print one-dimensional barcode.
GS1 DataBar (CMP_BCS_GS1DATABAR, CMP_BCS_GS1DATABAR_E, CMP_BCS_GS1DATABAR_T,
CMP_BCS_GS1DATABAR_L) can use only the printers of CT-D101/150/151,CT-E301/351/601/651,
CT-S251/310II/601/651/801/851/601II/651II/801II/851II/751/4500 series.
The designation of CMP_ALIGNMENT_CENTER and CMP_ALIGNMENT_RIGHT of the Barcode alignment
on the page mode is ignored.