I am reading excel sheet with following code:
Excel.Range uRange = xlWorkSheet.UsedRange;
dynamic data = uRange.Value2;
As you can see I copy used range cell values into dynamic 2D array. One column of selected range is custom formatted and with above technic I am getting just a bunch of numbers instead of nice formatted value when accessing this custom formatted cell (data[x,y]).
If I am accessing only certain cell directly with following code:
(Excel.Range)xlWorkSheet.Cells[x, y].Text
... I can see the formatted value I need. By accessing each cell separately I am loosing a lot of time because it is slower to access cell by cell inside a loop.
Is it possible to get all Text values from selected range. Something like this:
Excel.Range uRange =xlWorkSheet.UsedRange;
dynamic data = uRange.Text;
When I use above code I am getting empty variable.