Capturing Images from a Microsoft Word 2007/2010 Document

David Meego - Click for blog homepageThis is a reposting of an article I originally wrote on my Developing for Dynamics GP blog.

Here is a neat trick that I just used to copy images from a Microsoft Word 2007/2010 *.docx document.

I was given a Word document of a blog article to be posted on the blog. To get the text into the blog post editor (without extra html) is easy…. Just cut & paste into Notepad.exe and then cut & paste the plain text from Notepad.exe into the editor window. A little editing to add some formatting back and the text is done.

Now I needed to get the images from the Word document into the blog post editor. The editor needs the images saved as files which can be loaded.

I was about to right click on each image and copy it to the clipboard, then paste the image into an  image editor program and save the files. But then I had an idea and though I would give it a try.

All the new OpenDocument formats (docx, xlsx, pptx, etc.) are actually zip archive files in disguise.  So I renamed the docx to zip and opened the archive with WinZip. A quick look around the folder structure and the image files were located.

I then copied the image files from the archive to my desktop and they were ready for me to browse to and insert from the blog post editor.

Last step was to rename the zip file back to docx.

Voila!!! All done.

David

Note: It is easier to rename the extension of files when folder option “Hide extensions for known file types” is unchecked.

This article was originally posted on the Developing for Dynamics GP Blog and has been reposted on https://www.winthropdc.com/blog.

4 Comments on “Capturing Images from a Microsoft Word 2007/2010 Document”

Leave a Reply