FormatNumber使用SpreadsheetGear dll将逗号替换为逗号 [英] FormatNumber replace Decimal with Comma using SpreadsheetGear dll

查看:412
本文介绍了FormatNumber使用SpreadsheetGear dll将逗号替换为逗号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用SpreadsheetGear dll从VB.net将格式编号应用到Excel单元格

I want to apply Format Number to a Excel Cell from VB.net using SpreadsheetGear dll as below

此数字 2,22,222.00 需要转换为 2.22.222,00

This number 2,22,222.00 needs to convert to 2.22.222,00

我的工作:

worksheet.Range(NumberRange).NumberFormat = "[=0]0;###,###.00"

我将此格式应用于英语,类似的方式我想要数字格式转换和显示在单元格中。

I am applying this format for English language, similar way I want number format to convert and display in the cell.

推荐答案

你可以尝试这个。

CultureInfo.GetCultureInfo("PT").NumberFormat

这篇关于FormatNumber使用SpreadsheetGear dll将逗号替换为逗号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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