【问题标题】:How do I prevent the automatic rounding of numbers in the Stimulsoft report?如何防止 Stimulsoft 报告中的数字自动舍入?
【发布时间】:2021-11-14 06:13:59
【问题描述】:

我正在使用最新版本的 Stimulsoft 和 C#。我有一个从 SQL Server 数据库获取数据并显示它的报告。

我的问题是它在没有我调整的情况下四舍五入,就像这样:

123,456,789 => 123,456,792

我在 SQL Server 中的专栏:

在 Stimulsoft 中:

我尝试了什么:

  • 使用此自定义格式:#,0.##
  • 使用通用或货币,而不是数字
  • 使用这个表达式:
{IIF(Floor(MyTable.Price)==MyTable.Price,Floor(MyTable.Price),MyTable.Price)}

他们都没有工作......

请帮忙

【问题讨论】:

    标签: c# wpf report reporting stimulsoft


    【解决方案1】:

    在 Stimulsoft 内部,将价格列的类型从浮点型更改为小数型。 那么如果你想设置格式 使用这种格式类型: #,#0.#,#,#,#,#

    【讨论】:

    • 感谢我在 Stimulsoft 中的表格字典中将其更改为十进制
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-06
    • 1970-01-01
    • 1970-01-01
    • 2018-04-16
    • 2016-12-18
    • 1970-01-01
    相关资源
    最近更新 更多