Here I m trying to export a excel sheet with .xlsx format and that also formated but when i opn excel that tell me convert to number in excel sheet
.
please help me
.
Export To Excel In Xlsx Format.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
shi lianghong48 pointsPosted Apr 20, 2015, 11:56 PM EDT
Samuel Summers12 pointsPosted Jul 8, 2015, 11:59 PM EDT
ExcelFile file = new ExcelFile(); ExcelWorksheet sheet = file.Worksheets.Add("Sheet1"); double sampleNumber = 123.45; sheet.Cells["A1"].SetValue(sampleNumber); file.Save("Sample.xlsx");