Home  >  Products  >  Java Barcode  >  Java Barcode Generation Guide  >  iReport Barcode Generator

iReport Barcode Generation Guide | Barcode Generation in iReport and Jasper Reports



Java Barcode supports embeding barcodes in iReport and Jasper Reports reporting solutions for Java developer.



Java Barcode Generator - Generate barcodes in iReport

  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.keepdynamic.barcode.generator.jasperreports.BarcodeRenderer(com.keepdynamic.barcode.generator.jasperreports.BarcodeFactory.createLinear(8, "123456789"))";

  5. You can insert a Code 128 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}.



iReport Barcode - Barcode Type Property Settings