|
|
iReport UPC-A Generator Plugin Tutorial Generate, create linear barcode UPC-A 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 UPC-A for iReport plugin generate, create UPC-A barcode in iReport Jasper Reports
- Professional Java Barcode Library to generate UPC-A barcodes in iReport reports
- Simple to redistribute iReport UPC-A linear barcode library (jar)
- Easy to use barcode tool with no registration key or activation code needed
- Totally compatibile with latest GS1 General Specifications for valid output
- Generating high quality UPC-A Bar Code images in GIF, Png and Jpeg image formats
- Completely developed in NETBeans iReport Custom Extended Report Item framework.
- Mature iReport UPC-A barcode generation plugin using Java Barcode Generator library
iReport Barcode UPC-A Generator Introduction  Top Barcode UPC-A Introduction
UPC-A is also known as Universal Product Code version A, UPC-A Supplement 5/Five-digit Add-On, UPC-A Supplement 2/Two-digit Add-On, UPC-A+5, UPC-A+2, UPC Code, UPC Symbol, GTIN-12, GS1-12, UCC-12 iReport UPC-A Generator - Valid Data Scope
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
UPC-A Generators
How to generate UPC-A 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
- Right click on the image and edit its "Properties", and set property "Expression Class" to "net.sf.jasperreports.engine.JRRenderable";
- To input UPC-A barcode data manually, set property "Image Expression" to "new com.onbarcode.barcode.jasper.JasperRenderer(
com.onbarcode.barcode.jasper.BarcodeGenerator.draw(19, "12345678901", "", "X=2&Y=60"))" - To print UPC-A with data from database, please set property "Image Expression" to "new com.onbarcode.barcode.jasper.JasperRenderer(
com.onbarcode.barcode.jasper.BarcodeGenerator.draw(19, $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 UPC-A property table below
iReport Barcode UPC-A Generator - Property Settings  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.
UPC-A 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). |
| |
| UPC-A 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 |
iReport Barcode Generator Supporting BarCode Types  Top
Barcode for iReport - Bar Code Types Generation |