如何从水晶报表字符串和整数字段中删除逗号 [英] How to remove comma from crystal report string and from integer field

查看:296
本文介绍了如何从水晶报表字符串和整数字段中删除逗号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从水晶报表字段中删除逗号(,)?

How can I remove the comma (,) from crystal report fields?

我有一个字段名称year,其值为 2012 ,但是当我在水晶报表中显示该值时,它包含逗号,变为 2,012

I have a field name "year" which is having a value of 2012, but when I show that value in crystal report it includes a comma, becoming 2,012.

如何显示 2012

推荐答案

在水晶报表设计器视图中:

In the crystal report designer view:

右键单击该字段,然后选择 Format object 。在样式列表中选择自定义样式,然后单击自定义

Right mouse click on that field, and select Format object. Select Custom Style in the Style list, and click Customize. Untick Thousands Separator, and any other unwanted formatting.

如果不这样做,您可以尝试选择字段并删除

Failing that, you could try selecting the field and deleting the "," value from the property ThousandSeperator in your properties window.

这篇关于如何从水晶报表字符串和整数字段中删除逗号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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