BIRT Barcode is an Eclipse BIRT Custom Extended Report Item which helps you easily generate and print high quality 1D (linear) and 2D (matrix) barcodes in your BIRT reports.
EAN-13 barcode (originally European Article Number) is a barcoding standard which is a superset of the original 12-digit Universal Product Code (UPC) system developed in the United States. The EAN-13 barcode is defined by the standards organisation GS1. The numbers encoded in EAN-13 bar codes are product identification numbers which are called Japanese Article Number (JAN) in Japan. All the numbers encoded in UPC and EAN barcodes are known as Global Trade Item Numbers (GTIN), and they can be encoded in other GS1 barcodes.
Follow the steps below to print EAN-13 in BIRT Report. For details, navigate here:
BIRT Barcode Generator - Developer Guide
| Category |
Properties |
Value |
Comments |
| Basic
|
Property: Data
|
Type: expression
Default: ""
- If you encode the barcode data text directly, the text string should be around by " " ", such as "12345"
- If you encode the barcode data from dataset, input the expression, such as row["CUSTOMERNUMBER"]
|
Barcode value to encode.
EAN 13 Valid Data Char Set:
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
|
|
Property: Add CheckSum Char
|
Type: boolean
Default: false
|
Add CheckSum Char property is not applied here. BIRT Barcode will always add a check character in the last digit (modulo 10). |
| |
| EAN-13 Related |
Property: UPC/EAN Supplement Data
|
Type: expression
Default: ""
- If you encode the barcode supplement data text directly, the text string should be around by " " ", such as "12345"
- If you encode the barcode supplement data from dataset, input the expression, such as row["CUSTOMERNUMBER"]
|
Set the supplement data to encode. Valid values are 2 or 5 digits |
|
Property: UPC/EAN Supplement Bar Height
|
Type: float
Default: 0.8f
|
This is a multiplicator of the height of the bar module; The default is 0.8 (80% of Y - bar module height). |
|
Property: UPC/EAN Space between main bar and supplement bar
|
Type: float
Default: 15
|
The separation between the barcode and the supplement. Default is 15 pixel. |
| |
Barcode Size Related |
Property: Unit of Measure
|
Type: int
Default: 0 (pixel)
|
Unit of meature for all size related settings in the library.
Valid values: 0: pixel; 1: inch; 2: cm.
|
|
Property: X
|
Type: float
Default: 1
|
Width of barcode bar module (narrow bar), default is 1 pixel |
|
Property: Y
|
Type: float
Default: 30
|
Height of barcode bar module, default is 30 pixel |
|
Property: Left Margin
|
Type: float
Default: 0
|
Barcode image left margin size. |
|
Property: Right Margin
|
Type: float
Default: 0
|
Barcode image right margin size. |
|
Property: Top Margin
|
Type: float
Default: 0
|
Barcode image top margin size. |
|
Property: Bottom
|
Type: float
Default: 0
|
Barcode image bottom margin size. |
|
Property: Resolution (in dpi)
|
Type: int
Default: 72
|
Barcode image resolution in DPI (Dots per inch). |
|
Property: Rotate
|
Type: int
Default: 0 (rotate angle in 0 degree)
|
Valid values:
- 0 (rotate angle in 0 degree)
- 90 (rotate angle in 90 degree)
- 180 (rotate angle in 180 degree)
- 270 (rotate angle in 270 degree)
|
| |
Font Style |
Property: Show Text
|
Type: boolean
Default: true
|
If true, display barcode data text under the barcode, otherwise do not display. |
|
Property: Text Font Size
|
Type: int
Default: 11
|
Barcode text font size.
|
|
Property: Text Margin
|
Type: float
Default: 6
|
Space between barcode and barcode data text, default is 6 pixels |