0

I have a problem regarding the jasper reports. I have already an application that will generate a report using jasper reports. It does fine when my PC's Region and Language setting, the Format is not in Japanese even though the characters are in Japanese. But when I change my Format to Japanese, there comes the problem. It will generate a report thou but there is no display. We can tell that it can't generate a report because a message will appear saying "The Document has no page". Does this have something to do with the encoding or fonts?

The Japanese characters were also not displayed in the PDF that was generated.

4

2 回答 2

0

所以我能够在上述答案的帮助下解决我的问题。我所做的是,我更新了我的 jasperreports.jar 和 iText。另外,我添加了 itextasian.jar 和 jasperreports-font.jar(在上面的帮助下)。在我的 jrxml 文件中,我将字体和编码更改为:

                pdfFontName="HeiseiKakuGo-W5" pdfEncoding="UniJIS-UCS2-H"
于 2012-08-29T09:08:50.820 回答
0

检查您的 .jrxml 报告文件是否有此标头;

   <?xml version="1.0" encoding="UTF-8"?> 
于 2012-08-29T07:23:55.643 回答