FormatNumber replace Decimal with Comma using SpreadsheetGear dll

╄→尐↘猪︶ㄣ 提交于 2019-12-14 03:32:01

问题


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

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

My work:

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.


回答1:


You can try this.

CultureInfo.GetCultureInfo("PT").NumberFormat


来源:https://stackoverflow.com/questions/26294796/formatnumber-replace-decimal-with-comma-using-spreadsheetgear-dll

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!