Read all images from Excel file

The images included in Excel like below: 284

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


Get the instance of worksheet which includes the images.

var worksheet = reoGridControl.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
    // ...

Was the content of the page helpful?