Read all images from Excel file

The images included in Excel like below:


To read images from Excel file, use ReoGrid workbook to open the Excel file firstly:

using unvell.ReoGrid;

Get the instance of worksheet which includes the images.

var worksheet = reoGridControl1.Worksheets["Sheet1"];

By access the FloatingObjects property of worksheet, iterate over all floating objects existed on the worksheet:

foreach (var floatingObject in worksheet.FloatingObjects)
  // check whether or not the floating object is an image
  if (floatingObject is Drawing.ImageObject)
    var imageObject = (Drawing.ImageObject)floatingObject;

    var image = imageObject.Image;
    // process the image
    // ...

See Also