Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

New Post: Date vs. Numeric NPOI 2.0.6

$
0
0
Does anyone know how to determine the difference between a cell being a date vs. a numeric value? I know dates are stored as numeric values in Microsoft Office. As a result, for all cells containing dates or numeric values the properties of the ICell object appear to have values for both NumericCellValue and DateCellValue. I could determine the proper format by looking at the NumberFormat property but I cannot find it attached to the cell object. Any ideas on how to make the distinction?

This poses a problem when reading in an Excel file because you would have to make the blind assumption if a cell was a date or numeric. There is no way to let the system choose the correct cell value to read.

Viewing all articles
Browse latest Browse all 1621

Trending Articles



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