Streaming Barcodes into iReport Reports Image Elements
Index
We provides several methods to generate and print barcodes in iReport reprts.
Install Java Barcode Generator
- Under demo package, copy barcode folder and its contents to your tomcat.
- Restart tomcat.
- To test it. Open your web browser, and navigate to http://YourDomain:Port/barcode/barcode?DATA=0123456789&TYPE=CODE128
How to print barcodes in your iReport reports?
-
Create a new empty report in your iReport application
-
Add 2 Data Fields to your report details section.
-
Then drag and drop an "Image" from "Palette" to the report details section, and click "Cancel" button in "Select an image file ..." window
-
Select the image item, and go to its property window.
- Set "Expression Class" to java.net.URL
- Set "Image Expression" to new java.net.URL("http://YourDomain:Port/barcode/barcode?TYPE=CODE128&DATA=" + $F{PRODUCT_ID})
-
Preview the report. All product ids are encoded into barcode Code 128.
-
You can customize the printed barcode through URL parameters. More details, viewJava Barcode Generator Guide
-
To use OnBarcode Online Barcode Generator Hosting Service, you need change the URL to
http://generator.onbarcode.com/linear.aspx.
Each Barcode Type Property Settings in Java Barcode Generator
1D / Linear Barcodes
- Codabar
- Code 11
- Code 39
- Code 93
- Code 128
- UCC/EAN128 (GS1 128)
- Interleaved 2 of 5
- Code 2 of 5 (Industrial 2 of 5)
- ITF-14
- UPC-A, supplement 2, 5 digits
- UPC-E, supplement 2, 5 digits
- EAN-8, supplement 2, 5 digits
- EAN-13, supplement 2, 5 digits
- ISBN, supplement 2, 5 digits
- ISSN, supplement 2, 5 digits
- MSI Plessey
- POSTNET
- PLANET
- USPS Intelligent Mail Barcode (OneCode)
- Identcode
- Leitcode
- RM4SCC
|
|
Java Reporting Barcode Generation Guide
Jasper Reports Barcode Generation
|
iReport Barcode Generation
|
Eclipse BIRT Barcode Generation