EasyManuals Logo

Citizen CL-E331 Programming Manual

Citizen CL-E331
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 #10 background imageLoading...
Page #10 background image
CITIZEN Android Label Print SDK Programming Manual
10
1.4. Program structure
Here is an example program in Java which uses the SDK.
// Create an instance( LabelDesign class )
LabelDesign design = new LabelDesign();
// Text
design.drawTextPtrFont("Sample Print",
LabelConst.CLS_LOCALE_JP, LabelConst.CLS_PRT_FNT_TRIUMVIRATE_B,
LabelConst.CLS_RT_NORMAL, 1, 1, LabelConst.CLS_PRT_FNT_SIZE_24, 20,
300);
// QRCode
design.drawQRCode("DrawQRCode",
LabelConst.CLS_ENC_CDPG_US_ASCII, LabelConst.CLS_RT_NORMAL, 4,
LabelConst.CLS_QRCODE_EC_LEVEL_H, 20, 220);
// Rect(fill)
design.fillRect(20, 150, 350, 40, LabelConst.CLS_SHADED_PTN_11);
// BarCode
design.drawBarCode("0123456789",
LabelConst.CLS_BCS_CODE128, LabelConst.CLS_RT_NORMAL,
3, 3, 30, 20, 70, LabelConst.CLS_BCS_TEXT_SHOW);
// Create an instance( LabelPrinter class )
LabelPrinter printer = new LabelPrinter();
// Connect printer
int result = printer.connect(LabelConst.CLS_PORT_WiFi,
"192.168.128.212")
if (LabelConst.CLS_SUCCESS == result)
{
// Get Properties
int printDarkness = printer.getPrintDarkness();
if (LabelConst.CLS_PROPERTY_DEFAULT == printDarkness)
{
// Set Properties
printer.setPrintDarkness(10);
}
// Print Label
result = printer.print(design, 0001);
// Disconnect
printer.disconnect();
if (LabelConst.CLS_SUCCESS != result)
{
// Print Error
Toast.makeText(MainActivity.this, "Print Error :" +
Integer.toString(result), Toast.LENGTH_LONG ).show();
}
}
else
{
// Connect Error
Toast.makeText(MainActivity.this, "Connect or Printer Error :" +
Integer.toString(result), Toast.LENGTH_LONG ).show();
}
Design of the
label
Print of the
label
(Connect,
Print,
Disconnect)

Table of Contents

Other manuals for Citizen CL-E331

Questions and Answers:

Question and Answer IconNeed help?

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

Citizen CL-E331 Specifications

General IconGeneral
Product colorBlack
Print technologyThermal transfer
Printing media thickness63.5 - 190 µm
Sustainability complianceYes
Sustainability certificatesCE, Federal Communications Commission (FCC), TUV, UL ECOLOGO, VCCI
Display-
Control typeButtons
ColorNo
Maximum resolution- DPI
Printable dot numbers300 dot
Ribbon width60 mm
Core diameter25 mm
Ribbon length300 m
Media thickness0.150 mm
Maximum label width118 mm
Maximum media length1625.6 mm
Maximum roll diameter125 mm
RS-232 ports1
USB 2.0 ports quantityUSB 2.0 ports have a data transmission speed of 480 Mbps, and are backwards compatible with USB 1.1 ports. You can connect all kinds of peripheral devices to them.
Flash memory16 MB
Internal memory32 MB
Built-in barcodesCODABAR (NW-7), Code 128 (A/B/C), Code 39, Code 93, EAN13, EAN8, GS1 DataBar, ITF, PDF417, QR Code, UPC-A, UPC-E
Server operating systems supportedWindows Server 2012, Windows Server 2016, Windows Server 2019, Windows Server 2022
Windows operating systems supportedWindows 10, Windows 11, Windows 7
Weight and Dimensions IconWeight and Dimensions
Depth266 mm
Width178 mm
Height173 mm
Weight2600 g
Label width104 mm

Related product manuals