Java Barcode Generator - Generate barcodes in iReport


หน้าแรก JSP 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}

refer:  http://www.keepdynamic.com/barcoding/barcode-ireport.shtml

ขึ้นไปด้านบน