How To Set Cell Data Type

前端 未结 3 1149
庸人自扰
庸人自扰 2021-02-14 14:24

I am trying to set data type of cell, but it seems that\'s impossible to do with EPPlus.

If I place a number as value in cell, I get General data type in exported Excel

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-14 15:03

    This advice is great, for setting number cell type in Excel I used

    worksheet.Column(1).Style.Numberformat.Format = "#,##0.000";
    

    but I would really like to find some table of formats in EPPlus and cell types in Excel to get another Excel types like Currency, Percentage etc...

提交回复
热议问题