ADOU-V

导航

asp.net设置excel单元格格式

 

数字   (Range.NumberFormatlocal 属性)
常规 Range.NumberFormatlocal = "G/通用格式"
数值 Range.NumberFormatlocal = "0.000_ " --保留小数位数为3
  Range.NumberFormatlocal = "0" --不要小数
  Range.NumberFormatlocal = "#,##0.000 " --保留小数位数为3,并使用千位分隔符
货币 Range.NumberFormatlocal = "$#,##0.000"
百分比  Range.NumberFormatlocal = "0.000%"
分数  Range.NumberFormatlocal = "# ?/?"
科学计数  Range.NumberFormatlocal = "0.00E+00"
文本  Range.NumberFormatlocal = "@"
特殊  Range.NumberFormatlocal = "000000"---邮政编码
   Range.NumberFormatlocal = "[DBNum1]G/通用格式"---中文小写数字
   Range.NumberFormatlocal = "[DBNum2]G/通用格式"---中文大写数字
   Range.NumberFormatlocal = "[DBNum2][$RMB]G/通用格式"---人民币大写

posted on 2015-12-09 14:07  a-dou  阅读(775)  评论(0)    收藏  举报