Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2006

Tip: Looking for answers? Try searching our database.

automatically extracting images from word file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bof - 14 Nov 2006 13: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

Signature

bof at bof dot me dot uk

Tony Jollans - 14 Nov 2006 14:57 GMT
See my post here:
http://groups.google.co.uk/group/microsoft.public.word.vba.general/browse_thread
/thread/5a9ed18c2fd960af/e7057c173b56a361#e7057c173b56a361


Signature

Enjoy,
Tony

> 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 - 24 Nov 2006 12:29 GMT
>See my post here:
>http://groups.google.co.uk/group/microsoft.public.word.vba.general/brows
>e_thread/thread/5a9ed18c2fd960af/e7057c173b56a361#e7057c173b56a361

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.

Signature

bof at bof dot me dot uk

Doug Robbins - Word MVP - 24 Nov 2006 18:29 GMT
See the following page of fellow MVP Steven Lebans website

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

Signature

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

>>See my post here:
>>http://groups.google.co.uk/group/microsoft.public.word.vba.general/brows
[quoted text clipped - 3 lines]
> mode, now fixed by deleting normal.dot. I think the file must be corrupt
> in some way.
bof - 25 Nov 2006 14:40 GMT
>See the following page of fellow MVP Steven Lebans website
>
>http://www.lebans.com/msword.htm

Many thanks for the pointer

Signature

bof at bof dot me dot uk

Shauna Kelly - 14 Nov 2006 15:32 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

> 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 - 14 Nov 2006 17:23 GMT
>Hi bof
>
>Just save the file as a web page and Word will save each image as a separate
>file.

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.

Signature

bof at bof dot me dot uk

ChrisHarrington - 16 Nov 2006 03:24 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

>>Hi bof
>>
[quoted text clipped - 6 lines]
> 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 - 24 Nov 2006 12:36 GMT
>If you save doc as XML,

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).

Signature

bof at bof dot me dot uk

bof - 24 Nov 2006 13:10 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.

Signature

bof at bof dot me dot uk


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.