Jasper报告-无法归档文件:空 [英] Jasper Report - Unable to file the file: null

查看:78
本文介绍了Jasper报告-无法归档文件:空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 JasperReport 6.1.0 Java.在JasperReport的标准配置中存在一些问题.导出为PDF后,某些字符不会出现.例如Ə,İ,Ğ和Ş.

I am using JasperReport 6.1.0 for creating PDF report in Java. In JasperReport's standart configuration has some problems. Some characters does not appear after exporting to PDF. For example Ə,İ,Ğ and Ş.

在谷歌搜索之后,我发现必须添加其他字体. JasperReport还将显示此消息: PDF字体名称现已弃用.使用非标准字体时,应使用字体扩展名.

After googling I found that I must add different font. Also JasperReport show this message: PDF Font name is now deprecated. You should use a font extension when using non-standart font.

现在,我要添加 Windows Comis Sans MS PDF中显示隐藏的字母.当我向JasperReport添加任何*.ttf时,我得到了Unable to file the file: null.

Now I want to add Windows Comis Sans MS for displaying hidden letters in PDF. When I added any *.ttf to JasperReport I got Unable to file the file: null.

我该如何解决这个问题?

How can I fix this peoblem?

推荐答案

我刚刚解决了问题,但我不知道我的解决方案是确切的解决方案.在IReport中,我将Font name更改为Dejavu Serif,将Pdf Embedded更改为true.现在,我可以创建带有Ə,İ,Ğ和Ş字母的报告.

I have just solved the problem but I do not know my solution is exact solution. In IReport I changed Font name as Dejavu Serif and Pdf Embedded checked as true. Now I can create report with Ə,İ,Ğ and Ş letters.

这篇关于Jasper报告-无法归档文件:空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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