How to set data cell value to Number using ExcelPackage lib?

My question is probably stupid, but I can not find a solution on my own. I am having a problem with ( ExcelPackage ). Is there a way to set the data type of an Excel cell? And the cell.DataType property is a string that allows you to use DataTypes? Basically I need to set numerical formatting for specific columns / cells.

Thank you for your time.

+3
source share
2 answers

Here is a forum post that seems to answer your question: http://excelpackage.codeplex.com/discussions/50205?ProjectName=excelpackage

, Excel , , , . , .

+2

, , ("") . :

xlPackage.Workbook.Worksheets[1].Cell(contRow, contCol).Value = "08 ";

, (contRow, contCol) . . , .

+3

All Articles