Jasper Report - Unable to file the file: null

2019-08-10 16:01发布

问题:

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 Ş.

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.

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?

回答1:

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.



回答2:

To fix the bug, copy the font file (for example, arial.ttf) to NetBeans installation folder and rename it to "null".