Could not load the following font :pdfFontName : STSong-Light问题
来源:互联网 发布:java 报表工具 开源 编辑:程序博客网 时间:2024/06/03 21:57
这两天主要研究了一下jasperreport 结合webwork生成报表,在研究过程中遇到了一些问题,其中的一个问题就是生成的PDF报表后中其中的中文数据不能够正常显示,这主要的原因是因为在ireport制作报表时设置的问题。
必须设置报表上各显示对象的相关属性,各属性设置说明如下:
但设置完成后生成报表时又报出了:
net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font :
pdfFontName
pdfEncoding
isPdfEmbedded : true
的错误提示,造成这个错误的主要原因是缺少了iTextAsian.jar这个包。
将这个包下载后放入项目的WEB-inf/lib目录后错误还是存在,经过上网资料才发现只将这个包放入项目的WEB-inf/lib目录是不够的,还要将这个包导入到ireport的classpath中,然后再用ireport重新编译生成报表,就可以正常运行了。
别缺少jar包
0 0
- Could not load the following font :pdfFontName : STSong-Light问题
- 解决jasperreport pdf导出错误Could not load the following font问题
- bug宝典JAVA篇 Font 'STSong-Light' is not available to the JVM
- itext 处理中文问题 Font 'STSong-Light' with 'UniGB-UCS2-H' is not recognized 版本问题
- Font 'STSong-Light' with 'UniGB-UCS2-H' is not recognized(iTextAsian.jar 异常)
- itext生成PDF文件报错“Font 'STSong-Light' with 'UniGB-UCS2-H' is not recognized.”
- 用itextpdf导出pdf时报错: Font 'STSong-Light' with 'UniCNS-UCS2-H' is not recognized.
- iText 5.0.1生成pdf,加入iTextAsian.jar 出现异常 Font 'STSong-Light' with 'UniGB-UCS2-H' is not recognized.的问题
- itext生成pdf加了iTextAsian.jar还是报“Font 'STSong-Light' with 'UniGB-UCS2-H' is not re“
- 解决iText 5.0.6生成pdf,出现异常 Font 'STSong-Light' with 'UniGB-UCS2-H' is not recognized.的异常
- 解决"STSong-Light' with 'UniGB-UCS2-H' is not recognized"问题
- android studio布局预览报The following classes could not be found错的问题
- 解决iText 5.0.1生成pdf,加入iTextAsian.jar 出现异常 Font 'STSong-Light' with 'UniGB-UCS2-H' is not recognized.的
- The following control could not be licensed: TXTextControl.TextControl解决方法
- Android The following classes could not be instantiated
- Rendering Problems The following classes could not be found
- 解决方案-Rendering Problems-The following classes could not be instantiated:
- android Rendering Problems :The following classes could not be instantiated
- 第二章:hadoop2+HA+Zookeeper QJM集群搭建实验
- 文章标题
- Android min, max, targetSDK详解
- java--三目运算符 类型自动提升
- 数据结构、算法与应用 (C++描述) 第二版 1.10
- Could not load the following font :pdfFontName : STSong-Light问题
- web技术概论第六周作业
- NodeJs开发微信公众号
- js实现html的placeholder属性效果
- 【Tomcat】eclipse如何安装tomcat插件
- 警报:XcodeGhost已扩散至第三方框架
- NSString+NSMutableString+NSValue+NSAraay用法汇总
- 关于C语言的fprintf与fwrite使用区别
- jpush 推送