如何在ireport pdf输出中打印卢比符号? [英] How to print rupee symbol in ireport pdf output?

查看:604
本文介绍了如何在ireport pdf输出中打印卢比符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的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 &#x20b9 (hex).

if above unicode is not working then try &#8377 (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>"&#8377"</textFieldExpression>
</textField>

这篇关于如何在ireport pdf输出中打印卢比符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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