Hi
when trying to read attached file, the reader is incorrectly reading the first column's values (from row 4 down) as double. Instead it should be either string or datetime.
Any fix/workaround for this? We really like this tool but can't use without fixing this.
Thanks,
Stevo
Comments: ** Comment from web user: Ian1971 **
when trying to read attached file, the reader is incorrectly reading the first column's values (from row 4 down) as double. Instead it should be either string or datetime.
Any fix/workaround for this? We really like this tool but can't use without fixing this.
Thanks,
Stevo
Comments: ** Comment from web user: Ian1971 **
I tried with your spreadsheet and I got the value interpreted correctly as a date.
I hacked your code to be
```
public static void GetValues(DataSet dataset, string sheetName)
{
foreach (DataRow row in dataset.Tables[sheetName].Rows)
{
foreach (var value in row.ItemArray)
{
Console.WriteLine("{0}, {1}", value, value.GetType());
}
}
}
```
And I get the output
fbe83377-8474-4b3e-93ed-1c9ddafb5dcc, System.String
16/01/2014 16:00:00, System.DateTime
ÖvrigTjänstepension, System.String
etc
So, not sure what is going, unless it is something to with your locale.