如何在ireport pdf输出中打印卢比符号? [英] How to print rupee symbol in ireport pdf output?
问题描述
我想在我的ireport pdf输出中加上卢比符号。我已经添加了字体 Indian_rupee.ttf
到构建路径并安装它,但是我又遇到同样的问题。
我能做什么?
您好可以使用Unicode字符'INDIAN RUPEE SIGN'
对于这个unicode使用字体 DejaVu Sans ,INR
Unicode字符是&#x20b9 strong>(十六进制)。
如果上面的unicode不工作,请尝试&#8377 (十进制)。
$ b
这个usicode用于HTML,所以确保你选择html作为标记。
<文本框>
< reportElement x =520y =0width =30height =20uuid =/>
< textElement textAlignment =CenterverticalAlignment =Middlemarkup =html>
< font fontName =DejaVu Sanssize =14/>
< / textElement>
< textFieldExpression>&#8377< / textFieldExpression>
< / textField>
I want to add the rupee symbol in my ireport pdf output. I have added the font Indian_rupee.ttf
to the build path and installed it but again I am getting the same problem.
What can I do?
Hi you can use Unicode Character for 'INDIAN RUPEE SIGN'
For this unicode use font DejaVu Sans, Unicode Character for INR is ₹ (hex).
if above unicode is not working then try ₹ (decimal).
This usicode is use for HTML, so make sure you are select html as markup.
<textField>
<reportElement x="520" y="0" width="30" height="20" uuid=""/>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="html">
<font fontName="DejaVu Sans" size="14"/>
</textElement>
<textFieldExpression>"₹"</textFieldExpression>
</textField>
这篇关于如何在ireport pdf输出中打印卢比符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!