ireport 二维码
①导入 zxing包,(ireport中classpath 加入下面两个包、项目中也需要加入这两个包)
②在项目中加入 img 图片。
③在image expression 中加入 日下代码
com.google.zxing.client.j2se.MatrixToImageWriter.toBufferedImage(new com.google.zxing.qrcode.QRCodeWriter().encode($F{YWH},com.google.zxing.BarcodeFormat.QR_CODE,160,160))
其中 $F{YWH} 为你需要编码的 字段