Java Barcode Generator - Generate barcodes in iReport
หน้าแรก JSP Java Barcode Generator - Generate barcodes in iReport
- 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.keepdynamic.barcode.generator.jasperreports.BarcodeRenderer(com.keepdynamic.barcode.generator.jasperreports.BarcodeFactory.createLinear(8,"123456789"))"; - You can insert a Code 128 barcode into your report
- If barcode value is getting from database, define your data field, and replace the barcode value "123456789" with $F{DataFieldName}.
ขึ้นไปด้านบน
