◎筱米加步枪◎.Blog

Happy coding

JasperReport导出PDF报表中文不显示问题

筱米加步枪 posted @ 2012年1月17日 19:07 in [ 开源框架 ] with tags JasperReport 中文不显示 , 7022 阅读

这两天,利用iReport和JasperReport做报表,发现在导出PDF的时候中文不显示,而导出HTML却显示正常,而相关的itext包也引入到项目中了。百度发现,在报表定义的时候要设置如下属性:

    Font name:          宋体 (中文字体)
    PDF font name:  STSong-Light
    PDF Encoding:    UniGB-UCS2-H(Chinese Siplified)
    PDF Embeded:   true

如图:

设置后,问题解决。

  • 无匹配
Maha Board 8th Clas 说:
2023年9月24日 18:51

Maha Board High School Students Summers Holidays Don’t Waste Time 8th Standard Pursuing Students can Download the Textbooks and take the hard copy for further use, we will update the Latest Information on this page. Maharashtra e-Books 2024 Latest Version to be Upload Every Year in Online Mode.Maharashtra Board High School Textbooks 2024 are Very Important to Students on the Maha Board 8th Class Books 2024 Preparations of the Monthly and Final Examination. Here, we are Providing the Latest Edition of MH Class Book 2024 which is Published by the Balbharati. All the chapters can be Downloaded in form of PDFs.Maharashtra High School Students Follows.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter