水晶报表 - 放置小数点
我得到的整数值为 2345,但我想将其显示为 234.5,
这可能吗?
I'm getting an integer value as 2345 but I want to display it as 234.5
is it possible??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要通过简单的修复来获得您想要的东西,就像上面所说的那样。将值除以十。要执行此操作,只需进入字段资源管理器并右键单击公式字段部分,在 Crystal 中创建一个新公式。下面应该有一个创建新公式的选项。然后在出现的窗口中将要操作的字段放入公式中,然后将其除以十。就这样吧。现在使用报表中的公式字段而不是原始字段。
下面是它的外观示例。
To get what you are looking for in a simple fix is like what kingpin stated above. Divide the value by ten. To do this just create a new formula in crystal by going into your field explorer and right clicking on the formula fields section. Under there should be a option to create a new formula. Then in window that comes up put the field you want to manipulate in the formula and then divide that by ten. And there you go. Now use the formula field in the report instead of the original field.
Here is a example of how it could look.
它有一个字段属性。目前无法访问水晶报告,但我知道它就在那里:
如果您需要自定义分隔符,请检查 自定义千位Crystal Report 中的分隔符。
如果您仍然遇到问题,您可能还需要找到一些有关 Crystal Reports 本身的教程。
There is a field property for it. Don't have access to crystal reports at the moment, but I know it's there:
If you need a customized separator, check Customized Thousand Separator in Crystal Report.
You also might want to find some tutorials on the Crystal Reports themselves if you still have trouble.