extract pictures from excel file (c#) ?

G

Guest

Hi.

I would like to extract pictures included in an Excel file and save them in
files (with a name corresponding to "AlternativeText" propertie).
So, basically, I have the following C# loop to look for all shapes:

foreach (Microsoft.Office.Interop.Excel.Shape Myshape
CurrentSheet.Shapes) {
// filter pictures based on AlternativeText (due to my internal
// naming convention, I can sort comments and real pictures for
instance)
......
// save file
??????
}

But, I have absolutly no idea on how to save the content of the shapes which
correspond to JPEG files.

Any information is welcomed.

Cheers,

Pierre
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top