EasyManuals Logo

Citizen CL-S521 Programming Manual

Citizen CL-S521
95 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #67 background imageLoading...
Page #67 background image
CITIZEN Android Label Print SDK Programming Manual
67
Description
Draws a 1D (one-dimensional) barcode with specifying options such as barcode type, rotation,
thick/narrow bar width, coordinates and human readable text.
* Supported thick/narrow bar ratio or data type depends on symbology. Refer to the command
reference for details.
Return value
Returns CLS_SUCCESS(0) on success, an error code otherwise. See "2.1 Return value" for the error
codes.
Example
// Code3of9
String code39 = "ABC123456789";
design.drawBarCode(code39, LabelConst.CLS_BCS_CODE39,
LabelConst.CLS_RT_NORMAL, 6, 2, 50, 10, 10,
LabelConst.CLS_BCS_TEXT_SHOW);
// UPC-A
String upca = "01234567890";
design.drawBarCode(upca, LabelConst.CLS_BCS_UPCA,
LabelConst.CLS_RT_NORMAL, 2, 2, 50, 10, 100,
LabelConst.CLS_BCS_TEXT_SHOW);
// UPC-E
String upce = "123456";
design.drawBarCode(upce, LabelConst.CLS_BCS_UPCE,
LabelConst.CLS_RT_NORMAL, 2, 2, 50, 10, 100,
LabelConst.CLS_BCS_TEXT_SHOW);
// Interleaved2of5
String interleaved25 = "1234567890";
design.drawBarCode(interleaved25, LabelConst.CLS_BCS_INTERLEAVED25,
LabelConst.CLS_RT_NORMAL, 5, 2, 50, 10, 100,
LabelConst.CLS_BCS_TEXT_SHOW);
// Code128
String code128 = "1234567890";
design.drawBarCode(code128, LabelConst.CLS_BCS_CODE128,
LabelConst.CLS_RT_NORMAL, 2, 4, 50, 10, 10,
LabelConst.CLS_BCS_TEXT_SHOW);
// EAN-13
String ean13 = "123456789012";
design.drawBarCode(ean13, LabelConst.CLS_BCS_EAN13,
LabelConst.CLS_RT_NORMAL, 3, 3, 50, 10, 100,
LabelConst.CLS_BCS_TEXT_SHOW);
// EAN-8
String ean8 = "1234567";
design.drawBarCode(ean8, LabelConst.CLS_BCS_EAN8,
LabelConst.CLS_RT_NORMAL, 4, 4, 50, 10, 10,
LabelConst.CLS_BCS_TEXT_SHOW);

Table of Contents

Other manuals for Citizen CL-S521

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Citizen CL-S521 and is the answer not in the manual?

Citizen CL-S521 Specifications

General IconGeneral
Print technologyDirect thermal
Maximum resolution203 DPI
PC connectedYes
Standard interfacesUSB 1.1, Serial
Optional connectivityEthernet, Serial (RS-232)
USB 1.1 ports quantity1
Connectivity technologyWired
Flash memory4 MB
Internal memory16 MB
Compatible operating systemsWindows 7/XP/2003/2008/Vista
Form factorDesktop
Core diameter25 mm
Media thickness0.0635 - 0.254 mm
Maximum media length1625.6 mm
Maximum roll diameter125 mm
Supported paper width12.5 - 118.1 mm
Media thickness (imperial)0.0025 - 0.01 \
Supported paper width (imperial)0.50 - 4.65 \
Product colorGray
Housing materialMetal, Plastic
Weight and Dimensions IconWeight and Dimensions
Depth289 mm
Width231 mm
Height183 mm
Weight3600 g

Related product manuals