save an BMP image to a word table and then load it programmatica

H

Herve cadieu

Hi

I would like being able to save a Bmp image into a word table
programmatically and then afterwards being able to load the said image into a
control to compute processes.

I am using :
(Having already the selection in the table)
Selection.InlineShapes.AddPicture FileName:=sourceFile, LinkToFile:=False,
SaveWithDocument:=True
to save the Bitmap into a table with a defined Id

question : is there a mean to name the image when inserting with
inlineshape.addPicture ?

because I would like then being able to retrieve the image within the word
table and then load the said image into a control (say a picture box)
being sure the original image is unchanged (no compression no changes at all).

If any one could give me advises or any help mostly appreciated.
Regards from Paris France
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?SGVydmUgY2FkaWV1?=,
I would like being able to save a Bmp image into a word table
programmatically and then afterwards being able to load the said image into a
control to compute processes.

I am using :
(Having already the selection in the table)
Selection.InlineShapes.AddPicture FileName:=sourceFile, LinkToFile:=False,
SaveWithDocument:=True
to save the Bitmap into a table with a defined Id

question : is there a mean to name the image when inserting with
inlineshape.addPicture ?
No, only the Shapes collection has this property. But you could place a BOOKMARK
around an inlineshape, after you've inserted it, to make it easier to pick it up
later.
because I would like then being able to retrieve the image within the word
table and then load the said image into a control (say a picture box)
being sure the original image is unchanged (no compression no changes at all).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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 :)
 

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