Hello All,
I am trying to read an Excel spreadsheet (xls) programmatically. I have used the ODBC database route and have opened the Excel spreadsheet and then using a 'CRecordset', I read each row.
I correctly get that I have 13 columns, their names, etc... The problem comes when I am reading the data. I use the function 'GetFieldValue'. It correctly retrieves all data for each cell where numbers are stored as text. If a cell has a number that has been formatted as a number with thousand separators, etc, I always get null data returned. I have also tried forcing the 'GetFieldValue' function to use a specific data format...have tried every combination, but if I try read it as anything other than text, I get an error. If I use the 'GetODBCFieldInfo' function, it returns that each cell in the spreadsheet is text....
Where am I going wrong?
Regards.....Adrian