Office Word Programming >> automatically extracting images from word file

by bof » Tue, 14 Nov 2006 21:59:59 GMT


Can anyone advise if it's possible to extract and save .bmp images
embedded in a Word document using VBA. If yes any pointers to the code
needed?

MTIA

--
bof at bof dot me dot uk


Office Word Programming >> automatically extracting images from word file

by Tony Jollans » Tue, 14 Nov 2006 22:57:24 GMT


Office Word Programming >> automatically extracting images from word file

by Shauna Kelly » Tue, 14 Nov 2006 23:32:49 GMT

Hi bof

Just save the file as a web page and Word will save each image as a separate
file.

See here for more information:
http://www.gmayor.com/extract_images_from_word.htm

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word








automatically extracting images from word file

by bof » Wed, 15 Nov 2006 01:23:07 GMT

In message <# XXXX@XXXXX.COM >, Shauna Kelly
< XXXX@XXXXX.COM > writes

Hi Shauna, thanks for the reply, unfortunately the file is not
displaying the images, giving an error message about lack of memory/disk
space, when it's saved as HTML it creates a blank HTML page, so I was
hoping to try another tack and access them through VBA.


--
bof at bof dot me dot uk


automatically extracting images from word file

by ChrisHarrington » Thu, 16 Nov 2006 11:24:00 GMT

If you save doc as XML, you will find images in the file as base64
surrounded by a tag like:
<w:binData w:name="wordml://02000001.jpg">
Extract the text and use a base64 to binary converter







automatically extracting images from word file

by bof » Fri, 24 Nov 2006 20:29:36 GMT

In message <u#UL$ XXXX@XXXXX.COM >, Tony Jollans
< XXXX@XXXXX.COM > writes

Thanks, I tried with no success, and it left Word only starting in safe
mode, now fixed by deleting normal.dot. I think the file must be corrupt
in some way.

--
bof at bof dot me dot uk


automatically extracting images from word file

by bof » Fri, 24 Nov 2006 20:36:03 GMT

In message < XXXX@XXXXX.COM >, ChrisHarrington
<charrington-at-activeinterface.com@?.?.invalid> writes

Thanks Chris, sorry for such a basic question but how? Can't see that as
a save option, or any XML reference in the Help (except for smart tags).


--
bof at bof dot me dot uk


automatically extracting images from word file

by bof » Fri, 24 Nov 2006 21:10:50 GMT


Just a note to say thanks for everyone's input. The problem is now
solved, it was a corrupt file that was causing the problems, fortunately
I never throw anything away and found a good version of the file on a
dusty backup CD from seven years ago. I've now extracted the images by
saving as HTML.

--
bof at bof dot me dot uk


automatically extracting images from word file

by Doug Robbins - Word MVP » Sat, 25 Nov 2006 02:29:33 GMT

See the following page of fellow MVP Steven Lebans website

http://www.lebans.com/msword.htm

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP







automatically extracting images from word file

by bof » Sat, 25 Nov 2006 22:40:47 GMT

In message <#PvUBa$ XXXX@XXXXX.COM >, Doug Robbins - Word
MVP < XXXX@XXXXX.COM > writes


Many thanks for the pointer

--
bof at bof dot me dot uk


Similar Threads

1. Extract images and tables from a word doc to new file

I need some help to code a VBA procedure that is capable to do serveral 
opertions (to x tables and x images):

1- remove all tables from original doc and leave the expression "Insert 
table" + table number, and paste them in a new document with the same order 
and the same name that in the original document

2 the same procedure to the images, but saving them one by one in image format

many thanks in advance
(Word 2003)

2. Extract the image size from a TIFF file

3. extracting images from *.doc files?

I was sent a *.doc file with an embedded image that I'd like to
extract it and reuse in a website.  Only problem: I don't know how to
do such extractions.  If I right click and select "Copy" from the
resultant menu, I can't paste it into Adobe Photoshop.  I can paste a
screenshot of the loaded *.doc file into Photoshop, but that seems
less than ideal.

Any ideas?

4. extracting specific words to different fields automatically

5. Automatically add image to multiple files in multiple folders

Hi there.

I have hundreds of documents and I would like to know if there is an 
automated way to add an image file to each document. My goal is to place the 
image in a central location, put a bookmark/field/something that would pull 
in the image in each doc, and should the image change, have the image in each 
document automatically change. (I'm trying to prevent having to manually 
remove and add the image to each document.)

Thanks in advance!

Hilary

6. Extracting image from Word

7. Extracting images from word

8. extract images programaticaly from word document - Office Word Programming