BarcodeEAN

BarcodeEAN ( left ;​ top ;​ width ;​ height ;​ text ;​ color )

Argument Type Range Default Note
left num -inf..+inf (required)
top num -inf..+inf (required)
width num 0..inf (required)
height num 0..inf (required)
text str 0..100 (required) Max. 18 digits
color rgba 0..255 black
Examples

BarcodeEAN(10;​10;​200;​50;​"0123456") /* EAN-8 checksum digit is automatically added. */

BarcodeEAN(10;​10;​200;​50;​"01234565") /* EAN-8 with checksum digit (5). */

BarcodeEAN(20;​20;​200;​50;​"365224171377") /* EAN-13 checksum digit is automatically added. */

BarcodeEAN(20;​20;​200;​50;​"3652241713774") /* EAN-13 with checksum digit (4). */

BarcodeEAN(50;​20;​300;​100;​"X2max Software";​darkBlue)

Description

The BarcodeEAN() function makes it possible to create EAN-8, EAN-13 barcodes and accepts code with and without checksum digit.

Examples:

BARCODE_EAN_01
1

/* Note: Using a high print resolution is recommended for all types of barcodes. */

2

OpenDrawing(240;​100;​print)

3

BarcodeEAN(20;​10;​200;​80;​"5901234123457")

4

CloseDrawing()

BARCODE_EAN_01
BARCODE_EAN_02
1

/* Note: Using a high print resolution is recommended for all types of barcodes. */

2

OpenDrawing(240;​100;​print)

3

BarcodeEAN(20;​10;​200;​80;​"5901234123457")

4

AddText(7;​95;​"5";​Verdana;​15)

5

AddRect(26;​80;​90;​20;​#fafbfe)

6

AddText(30;​95;​"9 0 1 2 3 4";​Verdana;​15)

7

AddRect(123;​80;​90;​20;​#fafbfe)

8

AddText(127;​95;​"1 2 3 4 5 7";​Verdana;​15)

9

AddText(223;​95;​">";​Verdana;​15)

10

CloseDrawing()

BARCODE_EAN_02
BARCODE_EAN_03
1

/* Note: Using a high print resolution is recommended for all types of barcodes. */

2

OpenDrawing(140;​270;​print)

3

OpenView(-50;​80;​240;​110;​-90) /* Requires xmCHART 5 or higher. */

4

BarcodeEAN(20;​10;​200;​80;​"5901234123457")

5

AddText(7;​95;​"5";​Verdana;​15)

6

AddRect(26;​80;​90;​20;​#fafbfe)

7

AddText(30;​95;​"9 0 1 2 3 4";​Verdana;​15)

8

AddRect(123;​80;​90;​20;​#fafbfe)

9

AddText(127;​95;​"1 2 3 4 5 7";​Verdana;​15)

10

AddText(223;​95;​">";​Verdana;​15)

11

/* Background(none;;0.25) // Uncomment while positioning the barcode. */

12

CloseView()

13

/* Background() // Uncomment while positioning the barcode. */

14

CloseDrawing()

BARCODE_EAN_03
Scroll to Top
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×