KeepAutomation.com  > Products  >  Java Barcode  > Java Barcode Generation Guide > iReport Barcode Generator



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

  1. Add barcode.jar to your report classpath.

    Goto menu "Tools" > "Options" > "classpath" tab.

  2. Add an image item to the report

  3. Close the form to ask you select an image file.

  4. 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"))
    ";

  5. You can insert a Code 39 barcode into your report

  6. If barcode value is getting from database, define your data field, and replace the barcode value "123456789" with $F{DataFieldName}.