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

Load a picture from a spread sheet

Aug 29, 2014 at 12:02 PM
I create a spread sheet and add a jpg image to it using

private static void AddImage(ExcelWorksheet ws, int columnIndex, int rowIndex, string filePath)
    {
        //How to Add a Image using EP Plus
        Bitmap image = new Bitmap(filePath);
        ExcelPicture picture = null;
        if (image != null)
        {
            picture = ws.Drawings.AddPicture("pic" + rowIndex.ToString() + columnIndex.ToString(), image);
            picture.From.Column = columnIndex;
            picture.From.Row = rowIndex;
            picture.SetSize(340, 256);
        }
    }

BUT

I also need to read the spread sheet back in.
How do I read the image from the spread sheet into a Bitmap?
Oct 8, 2014 at 3:03 PM
Can anybody help please