在JasperReports 5.6.1中打印QR码 [英] Print a QR Code in JasperReports 5.6.1

查看:116
本文介绍了在JasperReports 5.6.1中打印QR码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在 JasperReports中打印QR码时出现以下错误

net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
1. com.google.zxing.client.j2se.MatrixToImageWriter cannot be resolved to a type
                value = com.google.zxing.client.j2se.MatrixToImageWriter.toBufferedImage(new com.google.zxing.qrcode.QRCodeWriter().encode("((java.lang.String)field_RECSEQ.getValue())",com.google.zxing.BarcodeFormat.QR_CODE,300 ,150 )); //$JR_EXPR_ID=10$


推荐答案

我得到了这个工作通过添加core.jar和javase.jar来构建路径。

I got this working by adding the core.jar and javase.jar to build path.

这篇关于在JasperReports 5.6.1中打印QR码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆