This project has moved. For the latest updates, please go here.

Reading image and other cells

Jun 2, 2014 at 3:52 PM
Hi,

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);

    results.Add(picInfo);
The problem is that sheets.Drawings[i] does not return the correct image where the row i is supposed to be.