水晶报表中的数字格式 [英] Number Format in Crystal Report

查看:126
本文介绍了水晶报表中的数字格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好..
我已经在.aspx页面中创建了一个水晶报表和一个水晶报表查看器.
我已经使用数据库专家连接到数据库. 现在我想在22,22,22,222.00中显示薪金总额
但它以这种格式显示222,222,222.00
请帮助我..我也想用文字显示.
也就是说,只有2亿22百万克朗和2222..
紧急.


< edit>删除了带有文本的前置标记

Hi.. to all
I''ve created one crystal report and one crystal report viewer in .aspx page
I''ve connected to the database using database expert..
now i want to display total no of salary in 22,22,22,222.00
but it is displaying in this format 222,222,222.00
please help me.. and i want to display in words also.
i.e two crore two lakhs twenty two thousand two hundred and twenty two only..
Its urgent..


<edit>Removed pre tags with text

推荐答案

我认为您无法在Crystal Report中获得特定格式,
但是有一种方法可以通过后面的代码来实现,

1.以数字格式可以将数字作为字符串,并在每两位数字后加上,'',然后将其填充到数据表中,然后将此表绑定到Crystal Report并作为字符串进行处理,而不是数字

2.字数,
为此,您可以参考我的文章,对此进行了很好的解释.
http://www.codeproject.com/KB/cs/Converter.asp [ ^ ]
I think the specific format you could not get in Crystal Report,
But there is a way to Accomplish by code Behind,

1. Number format you can take number as a String and Add '','' after every two digits and Fill it to Data Table and Bind this Table to Crystal Report and Care it as a String Rather then Number

2. Number in Words,
For that you can take reference of my Article which is well explained regarding this.
http://www.codeproject.com/KB/cs/Converter.asp[^]


这篇关于水晶报表中的数字格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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