This project has moved and is read-only. For the latest updates, please go here.

Reading image and other cells

Jun 2, 2014 at 4:52 PM

I have rows that contain an image column. I am trying to read the image column as well other columns however the results do not line up.
 var draw = sheets.Drawings[i];
if (draw is ExcelPicture)
    var pic = (ExcelPicture)draw;
    object imeiCell = sheets.Cells[i, 4].Value;
    var picInfo = new Tuple<string, ExcelPicture>(imeiCell.ToString(), pic);

The problem is that sheets.Drawings[i] does not return the correct image where the row i is supposed to be.