Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Created Unassigned: Cell.Value throw FormatException [9396]

$
0
0
It will throw the format exception when get the cell value which set the cell format is percent.
And I try to get the cell value like this code.

```
ClosedXML.Excel.XLWorkbook wb = new ClosedXML.Excel.XLWorkbook(new FileStream(@"New Microsoft Excel Test.xlsx", FileMode.OpenOrCreate));
var cell = wb.Worksheet("Sheet1").Cell("A1");
var value = cell.Value; //It will throw the format exception
```


Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>