|
BIRT UPC-A Generator Tutorial
Generate barcode UPC-A images in BIRT Reports
We tested several barcode solutions for our project, and found this one the most reliable barcoding software.
- Tim Martin, NYC Generate UPCA in BIRT Reports, UPC-A Barcode Generation using BIRT Barcode Generator
- Easy to generate UPC-A, UPC-A+2, UPC-A+5 barcodes in BIRT reports
- Simple to redistribute BIRT UPC-A barcode library (jar)
- No registration key or activation code needed
- Generating high quality UPC-A Bar Code images in GIF, Png, Jpeg, EPS format
- Completely developed in Eclipse BIRT Custom Extended Report Item framework.
- Mature BIRT UPC-A barcode generation plugin using Java Barcode Generator library
BIRT 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. BIRT UPC-A Generator - Valid Data Scope
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 (11 digits excluding checksum)
UPC-A Generators
How to Generate UPC-A in BIRT Report Top
Below is an example to print UPC-A barcodes in Eclipse BIRT Report. For details, view here: BIRT Barcode Generator - Developer Guide
- Copy com.onbarcode.barcode.birt_2.2.1.jar to your Eclipse plugins directory "\eclipse\plugins\"
- Create a new empty report in your BIRT Report barcoding project
- Open View "Palette", and add report item "Barcode" to your created BIRT report
- Right click the report item you have added, and select "Properties" menu item to edit barcode parameters
- Now all the barcode properties are in the "General" tab. Note that the values for "Data" and "UPC/EAN Supplement Data" should be arounded by """, unless you are inputting expression
- Change Barcode Type into Data Matrix in the general tab and preview the report. A UPC-A barcode image is printed on your BIRT report
- To encode barcode data from BIRT report data set, you need to input expression to "Data" property like "row["CUSTOMERNUMBER"]"
BIRT 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. BIRT 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 |
BIRT Barcode Generator Supporting Barcode Symbology Types Top |