Drawgs1Databar Method - Citizen CL-S700 Programming Manual

Android label print sdk
Hide thumbs Also See for CL-S700:
Table of Contents

Advertisement

2.3.13 drawGS1DataBar method

Syntax
int drawGS1DataBar (String[] data, int type, int rotation, int exp, int x, int y)
Parameters
Parameter [IN/OUT] Description
data
[IN]
symbology
[IN]
rotation
[IN]
exp
[IN]
x
[IN]
y
[IN]
Description
Draws the GS1DataBar barcode with specifying options such as rotation, magnification and
coordinates.
* The available text types vary depending on the symbology. Refer to the "GS1 DataBar (RSS) in the
command reference.
Return value
Returns CLS_SUCCESS(0) on success, an error code otherwise. See
codes.
Example
// GS1 DataBar Omni-Directional
String[] omnidirectional = new String[] { "1234567890123" };
design.drawGS1DataBar(omnidirectional,
LabelConst.CLS_GS1_DATABAR_OMNI_DIRECTIONAL,
LabelConst.CLS_RT_NORMAL, 3, 10, 10);
// GS1 DataBar Composite
String[] composit = new String[] {
"1234567890123", "1234567890-07/07/07" };
design.drawGS1DataBar(composit,
LabelConst.CLS_GS1_DATABAR_COMPOSITE,
LabelConst.CLS_RT_NORMAL, 3, 10, 110);
Setting range
String data
ASCII code character string.
Barcode type
CLS_GS1_DATABAR_OMNI_DIRECTIONAL:
CLS_GS1_DATABAR_COMPOSITE: Conposite
CLS_GS1_DATABAR_TRUNCATION: Truncation
CLS_GS1_DATABAR_STACKED: Stacked
CLS_GS1_DATABAR_STACKED_OMNI_DIRECTIONAL:
CLS_GS1_DATABAR_LIMITED: Limited
CLS_GS1_DATABAR_EXPANDED: Expanded
Direction of rotation CLS_RT_NORMAL: No rotation
CLS_RT_RIGHT90: Rotate CW 90
CLS_RT_ROTATE180: Rotate CW 180
CLS_RT_LEFT90: Rotate CCW 90
Magnification
1-15
X-coordinate
0000-9999
* The origin is at bottom-left.(0, 0)
Y -coordinate
76
CITIZEN Android Label Print SDK — Programming Manual
Omni-dirctional
Stacked Omni-dirctional
"2.1 Return
value" for the error

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents