
Extracting images to file from Word using VB automation
Hi Mike
Use:
ActiveDocument.SaveAs FileName:=strDocName, _
FileFormat:=wdFormatHTML
Please post any response to the newsgroups for the benefit of others who may
also be following the thread.
Hope this helps,
Doug Robbins - Word MVP
Quote:
> Chris,
> I run Word through VB6.
> How do I do this programatically?
> moWord.Documents(1).SaveAs(????)
> There are no options for HTML format.
> I could run the word command macro "FileSaveHTML", but i
> dislike running macros from VB6.
> Thanks,
> Mike
> >-----Original Message-----
> >Hi Chris,
> >When the document is saved as web page, a .jpg file is
> created for each
> >image in it and placed in a folder with the document name.
> >Please post any response to the newsgroups for the
> benefit of others who may
> >also be following the thread.
> >Hope this helps,
> >Doug Robbins - Word MVP
> >> Hi all
> >> I need to automate the extraction of images embedded in
> word 2000
> >> docs.
> >> I (logically) want to do something like
> >> for each picture in the document
> >> save it to file_n.graphicextension
> >> end for each
> >> I'm already using VB to automate the extraction of
> textual
> >> information, and "all" I have left to do is the images.
> >> I don't care what format they come out in, as long as I
> can automate
> >> saving each to a file and the file be of some graphical
> type
> >> (bmp/gif/jpg/whatever).
> >> What's the latest and greatest answer to this please?
> >> Many thanks in advance
> >> Chris Sexton
> >.