百分比的MSO数字格式,带有3位小数

时间:2016-04-01 23:59:25

标签: c# export-to-excel number-formatting

我需要MSO编号格式,用于从.Net应用程序中将带有3位小数的百分比导出到Excel。

我尝试了下面的代码,但它只输出2位小数。

e.Cell.Style["mso-number-format"] = @"Percent";

有人可以帮忙吗?

感谢。

1 个答案:

答案 0 :(得分:1)

找到有用的东西。

e.Cell.Style["mso-number-format"] = @"0\.000%";

感谢。

相关问题