如何在阿拉伯语言的水晶报表上显示数值 [英] How to display numeric values on crystal report in arabic language

查看:66
本文介绍了如何在阿拉伯语言的水晶报表上显示数值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在visual studio 2010中有一个水晶报告,其中我正在显示一些数值。我想在服务器和客户端机器上以阿拉伯​​语显示这些值,而不需要在相应的机器上进行区域和语言配置。

解决方案

请参阅我对该问题的评论。如果这就是你的意思,我不确定格式化数字到任何某种文化是否会成功,很可能它会留下阿拉伯数字阿拉伯语,不会将它们转换为复活节阿拉伯语。然而,转换将是非常微不足道的。您可以注意到,东方阿拉伯数字的排序方式与Western(0到9)相同,并且代码点范围为0660到0669,也就是说,它们与拉丁数字不同,历史编码为ASCII,只能通过常移( 0 - 9取范围0030到0029)。



请参阅:

http://www.unicode.org/charts/PDF/U0600.pdf [ ^ ],

http://www.unicode.org/charts/PDF/U0000.pdf [ ^ ]。



有些代码示例可以在这里找到,你可以检查一下:

http://stackoverflow.com/questions/8926792/converti ng-numbers-from-western-arabic-digits-1-2-3-to-east-arabic-digit [ ^ ]。



基本上,您首先要格式化所有西方风格的数字,获取字符串,然后移动代码点,但仅限数字。



另请参阅: http://en.wikipedia.org/wiki/Arabic_numerals [ ^ ]。



- SA

I've a crystal report in visual studio 2010 in which I'm displaying some numeric values. I want to display those values in arabic language on server and client machine without regional and language configuration on respective machine.

解决方案

Please see my comment to the question. If this is what you mean, I'm not sure if formatting numbers to any certain culture will do the trick, most likely it will leave Arabic numbers Arabic, won't convert them to Easter Arabic. However, the conversion would be quite trivial. You can notice that Eastern Arabic numerals are ordered in the same way as Western (0 to 9) and take the code point range of 0660 to 0669, that is, they differ from Latin numerals, historically encoded as ASCII, only by constant shift ("0"-"9" take the range 0030 to 0029).

Please see:
http://www.unicode.org/charts/PDF/U0600.pdf[^],
http://www.unicode.org/charts/PDF/U0000.pdf[^].

Some code sample can be found here, you can check it up:
http://stackoverflow.com/questions/8926792/converting-numbers-from-western-arabic-digits-1-2-3-to-eastern-arabic-digit[^].

Basically, you first format all numerals in Western style, obtain a string, and then shift the code points, but only for digits.

See also: http://en.wikipedia.org/wiki/Arabic_numerals[^].

—SA


这篇关于如何在阿拉伯语言的水晶报表上显示数值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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