Forum Moderators: coopster

Message Too Old, No Replies

Read MS Excel files and extract pictures!

         

kristo5747

10:36 pm on May 20, 2010 (gmt 0)

10+ Year Member



Hello!

I was given a bunch of MS Excel files (Office 2007) that contain pictures (JPEG format).

My assignment is to extract the pictures and dump them on a web server for easy access.

I found a package on sourceforge called `phpexcelreader` but it is no longer maintained.

Is it at all feasible? Can someone share some insight?

Thanks.

Al.

Demaestro

11:32 pm on May 20, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Are the images actually embedded in the Excel file or does the excel file reference the physical location of an image in a db, online or as a file on disk?

kristo5747

2:22 am on May 21, 2010 (gmt 0)

10+ Year Member



Embedded in the Excel file, which is the challenge...I think.

Demaestro

6:54 pm on May 21, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yikes,,, that sounds ugly.

You can write a macro that exports them to a folder, but you would have to be able to execute that server side, or execute it on a machine that can do this... then upload the resulting directory to the server.

kristo5747

7:41 pm on May 21, 2010 (gmt 0)

10+ Year Member



'Ugly' is putting it mildly.

Thanks to Google, I found a VBA macro that can do the trick.

The integration is another story but so far, VBA seems to work.

Demaestro

8:35 pm on May 21, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Good luck, if you have more questions post back and I will try to help.