HighTechTalks DotNet Forums  

Obtain images from Word 2007 documents

Visual Studio.net (Tools Office) microsoft.public.vsnet.vstools.office


Discuss Obtain images from Word 2007 documents in the Visual Studio.net (Tools Office) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
eschneider
 
Posts: n/a

Default Obtain images from Word 2007 documents - 11-24-2008 , 03:22 PM






Hello,

I'm trying to obtain the images contained inside a Office 2007 word
document. I can't seem to find a way through the object model.

Anyone know how to loop through the images?

Thanks,
Schenider



Reply With Quote
  #2  
Old   
Cindy M.
 
Posts: n/a

Default Re: Obtain images from Word 2007 documents - 11-25-2008 , 02:08 AM






Hi Eschneider,

Quote:
I'm trying to obtain the images contained inside a Office 2007 word
document. I can't seem to find a way through the object model.

Anyone know how to loop through the images?

The Shapes and InlineShapes collections. And if you need headers,
footers, etc. then you also have to loop all the "StoryRanges". Look
up the StoryRanges Object in the object model (VBA) Help and work
through the code samples carefully to see how to access all the "nooks
and crannies".

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

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



Reply With Quote
  #3  
Old   
eschneider
 
Posts: n/a

Default Re: Obtain images from Word 2007 documents - 11-25-2008 , 10:42 AM



Thanks.

Also the Word.Shape.Type can provide more details on the type of item...

Schneider




"eschneider" <eschneider (AT) community (DOT) nospam> wrote

Quote:
Hello,

I'm trying to obtain the images contained inside a Office 2007 word
document. I can't seem to find a way through the object model.

Anyone know how to loop through the images?

Thanks,
Schenider




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.