Skip to content

Commit

Permalink
Merge pull request #5 from borisdj/patch-1
Browse files Browse the repository at this point in the history
Update XlsxFileReader.Sheet.cs
  • Loading branch information
mstijak committed Aug 5, 2014
2 parents a8f6465 + 21d5d0c commit 5d8f934
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Codaxy.Xlio/IO/XlsxFileReader.Sheet.cs
Expand Up @@ -99,12 +99,16 @@ private void ReadSheet(string sheetPath, Sheet sheet)
var n = Convert.ToDouble(c.v, CultureInfo.InvariantCulture);
value = data.style != null && NumberFormat.IsDateTimeFormat(data.style.format) ? value = XlioUtil.ToDateTime(n) : n;
break;

case ST_CellType.str:
case ST_CellType.inlineStr:
value = c.v;
break;

case ST_CellType.s:
value = sharedStrings[Convert.ToInt32(c.v, CultureInfo.InvariantCulture)];
break;

case ST_CellType.b:
value = c.v != null && c.v.Length > 0 && (c.v[0] == 'T' || c.v[0] == 't' || c.v[0] == '1');
break;
Expand Down

0 comments on commit 5d8f934

Please sign in to comment.