1、打开IReport安装目录,找到D:\dev_tools\iReport-5.6.0\ireport\modules\ext\iTextAsian.jar这个包
2、将这个jar包放到项目下
主要依赖:
//报表依赖
compile "net.sf.jasperreports:jasperreports:5.6.1"
compile "com.lowagie:itext:2.1.7"
compile 'org.olap4j:olap4j:1.2.0'
compile files("lib/iTextAsian.jar")
打印文件中文显示空白问题,在Ireport设计器中设置字体以及pdf预览
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!