|
|
iReport EAN-13 Generator Plugin Tutorial Generate, create linear barcode EAN-13 images in iReport reports I was looking for an iReport barcoding tool for our project! And OnBarcode provided exactly what we needed!
- Adam Landon, UK EAN-13 for iReport plugin generate, create EAN-13 barcode in iReport Jasper Reports
- Easy to generate EAN 13 barcodes in iReport reports
- Simple to redistribute iReport EAN 13 barcode library (jar).
- Easy to use with no registration key or activation code needed
- No programming involved, and no barcode fonts or third party tools needed
- Generating high quality EAN 13 Bar Code images in GIF, Png, Jpg format
- Completely developed in NETBeans iReport Custom Extended Report Item framework.
- Mature iReport EAN 13 barcode generation plugin using Java Barcode Generator library
iReport Barcode EAN 13 Generator Introduction  Top Barcode EAN-13 Introduction
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. iReport EAN 13 Generator - Valid Data Scope
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
EAN-13 Generators
How to print EAN-13 barcodes in iReport?  Top
- Create a new report, and add barcode.jar to report classpath from the downloaded trial package
- Drag an image item in Palette to report
- Click "Cancel" button, in "Select an image file" window
- Select the image and edit its "Properties", and set property "Expression Class" to "net.sf.jasperreports.engine.JRRenderable"
- To input EAN-13 barcode data manually, set property "Image Expression" to "new com.onbarcode.barcode.jasper.JasperRenderer(
com.onbarcode.barcode.jasper.BarcodeGenerator.draw(18, "123456789012", "", "X=2&Y=60"))" - To print EAN-13 with data from database, please set property "Image Expression" to "new com.onbarcode.barcode.jasper.JasperRenderer(
com.onbarcode.barcode.jasper.BarcodeGenerator.draw(18, $F{data field} + "", "", "X=2&Y=60"))";
BarcodeGenerator.draw method accepts 4 parameters: the second is the barcode data to encode, in String, the last is the barcode settings String. More details about barcode settings string, please check the EAN-13 property table below
iReport Barcode EAN-13 Generator - Property SettingsTop  Top
| 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. iReport 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/b>
|
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 |
iReport Barcode Generator Supporting BarCode Types  Top
Barcode for iReport - Bar Code Types Generation |