Extracting images & text from a word document

I

Ivan Debono

Hi all,

I have a word document which is basically a table with 1 column and many
many rows. Each row contains a picture and text.

I would like to go through each row, get the picture and save it on the hd
in its original size and then get the text and save it somewhere else.

Is this possible to automate this?

Thanks,
Ivan
 
C

Cindy M -WordMVP-

Hi Ivan,
I have a word document which is basically a table with 1 column and many
many rows. Each row contains a picture and text.

I would like to go through each row, get the picture and save it on the hd
in its original size and then get the text and save it somewhere else.

Is this possible to automate this?
Not really, not using just VBA, anyhow. Word provides no way to save
graphics to files. The only ways I know about to extract graphics from a
Word document are:
- save as a web page; the graphic should be saved as a separate file in a
sub-folder

- use copy/paste (into a graphics program, for example)

- use something like C++ that can go into Word's binary file format and
extract the stream. But for that, you also need the BIFF information for the
exact version of Word from Microsoft.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
I

Ivan Debono

My best shot is to copy/paste to a graphics program. Saving to html is
easier and faster but the images are saved randomly and I would have to go
through them and rename them all :(
 

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