简体   繁体   English

Crystal报表在十进制字段中显示######

[英]Crystal report displays ###### in decimal fields

I'm using Crystal report to generate reports to my c# application, But the 我正在使用Crystal报表生成到我的C#应用​​程序的报表,但是

decimal fields displays as #####. 小数字段显示为#####。 I'm using VS 2010 professional, .Net 4.5 and 我正在使用VS 2010 Professional,.Net 4.5和

SAP Crystal Reports, developer version for Microsoft Visual Studio SP5. SAP Crystal Reports,Microsoft Visual Studio SP5的开发人员版本。

How to fix this problem?? 如何解决这个问题?

Thanks in advance. 提前致谢。

Crystal Reports (and also Microsoft Excel) displays hashes when the content is too large to fit in the container. 当内容太大而无法容纳在容器中时, Crystal Reports (以及Microsoft Excel)会显示哈希。 In this case your decimal number likely has too many digits to fit. 在这种情况下,您的十进制数字可能包含太多位数。 There are two simlpe solutions: 有两种simlpe解决方案:

  1. Make your container wider 使您的容器更宽
  2. Format the number to reduce the number of digits, usually this means picking a number of decimal places to show. 格式化数字以减少位数,通常这意味着选择要显示的小数位数。 So for example 1.23456789 will show as 1.23 . 因此,例如1.23456789将显示为1.23

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM