I opened *.htm file with Excel Application (Microsoft.Office.Interop.Excel). It was parsed excellent! So I can work with it. For more speed, I'm trying to get data from Excel Range and insert into System.Array and work with it:
Excel.Range range = ExcelWorksheet.get_Range("A1", "H1500"); // get all values
System.Array dataArray = (System.Array)(range.Cells.Value2); // insert into array
Problem is with data type. If Excel cell has time or date format, range.Cells.Value2 makes:
12.06.2012 to 41072 (Excel Cell Type - date)
14:48 to 0,616666666666667 (Excel Cell Type - time)
If I get single value form Excel Cell, I get correct value (with Cells.Text.ToString()):
ExcelWorksheet.get_Range("A1", "A1").Cells.Text.ToString()
Task: I need get values from Excel Sheet as they are, just like text, not as another type.
And don't want Excel thinks instead of me :)