Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2005

Tip: Looking for answers? Try searching our database.

export picture shape

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Luc Benninger - 26 Oct 2005 16:15 GMT
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
Jean-Guy Marcil - 26 Oct 2005 16:46 GMT
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.

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org 

Luc Benninger - 27 Oct 2005 07:29 GMT
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

> Luc Benninger was telling us:
> Luc Benninger nous racontait que :
[quoted text clipped - 5 lines]
>
> Save as HTML, all pictures will be extracted in a subfolder.
Jean-Guy Marcil - 27 Oct 2005 13:55 GMT
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
[quoted text clipped - 5 lines]
> 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.

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org 

Luc Benninger - 04 Nov 2005 12:57 GMT
My code should work if the picture isn't available as file, too. I know
I could use the clipboard win api to create a (temporary) picture file
out of the shape in the document and then assign it to the image control
on the userform. But as this will overwrite any previous content of the
clipboard, I don't think this is a good solution.

> Luc Benninger was telling us:
> Luc Benninger nous racontait que :
[quoted text clipped - 25 lines]
> 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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.