KeepAutomation
Java Barcode is a Java barcode generator, which supports most common linear and 2D barcode types, and helps Java developers quickly and easily add barcode generation functionality to iReport applications.
[
Java Barcode Info] [
Download Java barcode free evaluation package]
Java Libraries
-
Add barcode.jar to your report classpath.
Goto menu "Tools" > "Options" > "classpath" tab.
-
Add an image item to the report
-
Close the form to ask you select an image file.
-
Set image properties
Set "Expression Class" to "net.sf.jasperreports.engine.JRRenderable";
Set "Image Expression" to "new com.keepautomation.barcode.jasper.BarcodeRenderer(com.keepautomation.barcode.jasper.BarcodeFactory.
createLinear(3, "123456789"))";
-
You can insert a Code 39 barcode into your report
-
If barcode value is getting from database, define your data field, and replace the barcode value "123456789" with $F{DataFieldName}.