Developing for Dynamics GP

by David Musgrave (Perth, Australia) and Microsoft Dynamics GP Developer Support Team (Fargo, ND, USA)

Capturing Images from a Microsoft Word 2007/2010 Document

Capturing Images from a Microsoft Word 2007/2010 Document

Rate This
  • Comments 4

David Meego - Click for blog homepageHere 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 my favourite image editor program (PolyView) 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.


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

Page 1 of 1 (4 items)
Comments Information


Please only post comments relating to the topic of this page.

If you wish to ask a technical question, please use the links in the links section (scroll down, on right hand side) to ask on the Newsgroups or Forums. If you ask on the Newsgroups or Forums, others in the community can respond and the answers are available for everyone in the future.

Leave a Comment
  • Please add 6 and 2 and type the answer here:
  • Post