45
CITIZEN UWP POS Print SDK - Programming Manual
2.3.14. PrintGS1DataBarStackedAsync method
Syntax
Task<int> PrintGS1DataBarStackedAsync (string data, int symbology, int moduleSize, int maxSize,
int alignment)
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_GS1DATABAR_S
:
GS1 DataBar Stacked
CMP_BCS_GS1DATABAR_E_S
:
GS1 DataBar Expanded Stacked
CMP_BCS_GS1DATABAR_S_O
:
GS1 DataBar Stacked Omnidirectional
moduleSize
[IN]
Module width
2 - 8 (dots)
Expressed in the unit of measure given by
maxSize
[IN]
Max width
106 - 39528 (dots)
Max width of GS1 DataBar Expanded Stacked.
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
Description
This method is used to print 2-dimensional GS1 DataBar barcode.
This method 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/4500 series.
Please refer to the Command Reference of the printer for details on each parameter.
The designation of CMP_ALIGNMENT_CENTER and CMP_ALIGNMENT_RIGHT of the Barcode alignment
on the page mode is ignored.
Return value
Return CMP_SUCCESS (0) in success. Please refer to "
" for the error code except it.
Example
await printer.PrintGS1DataBarStackedAsync(
"0123456789012",
ESCPOSConst.CMP_BCS_GS1DATABAR_S,
4,
300,
ESCPOSConst.CMP_ALIGNMENT_LEFT );