export picture shape

L

Luc Benninger

Anyone knows if there's a way to export a picture shape into a file? If
possible without using the clipboard.
Thanks for any hints!
Luc
 
J

Jean-Guy Marcil

Luc Benninger was telling us:
Luc Benninger nous racontait que :
Anyone knows if there's a way to export a picture shape into a file?
If possible without using the clipboard.
Thanks for any hints!
Luc

Save as HTML, all pictures will be extracted in a subfolder.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
L

Luc Benninger

Thanks for replying. Unfortunately that's not working for me, as I
cannot save the doc as html because users will continue working with the
doc after my code has run.

To be a bit more specific: I'm trying to put a word picture shape onto a
vba userform. At run-time. So, if I could get an IPictureDisp reference
to the picture in the shape....??? Or is there an other workaround for this?

Thanks a lot
Luc
 
J

Jean-Guy Marcil

Luc Benninger was telling us:
Luc Benninger nous racontait que :
Thanks for replying. Unfortunately that's not working for me, as I
cannot save the doc as html because users will continue working with
the doc after my code has run.

To be a bit more specific: I'm trying to put a word picture shape
onto a vba userform. At run-time. So, if I could get an IPictureDisp
reference to the picture in the shape....??? Or is there an other
workaround
for this?

If I remember correctly, to put a picture on a userform. you need a file...

Normally, you use something like:

UserForm1.Photo1.Picture = LoadPicture(strFile)

where strFile is the full path to a picture file.

If the image must come from the Word document itself, then you have to
hardcode the info in the document so that the userform can locate the
picture file:

Image1.picture=LoadPicture("c:\windows\argyle.bmp")

You should be able to get the path\filename of a picture in an
IncludePicture field in your document by parsing the code of the field.


--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top