Inserting an Image without using a file?

N

news.Microsoft.com

Hi,

We are building a function that will generate and return an image.

I am able to insert an image that has been saved to a Disk file using:
ActiveDocument.Shapes.AddPicture "C:\PicTest.tif"

My question is how to insert the generated image into an existing document
without first saving it out to a file?

Thanks!
 
C

Cindy M -WordMVP-

Hi News.Microsoft.com,
We are building a function that will generate and return an image.

I am able to insert an image that has been saved to a Disk file using:
ActiveDocument.Shapes.AddPicture "C:\PicTest.tif"

My question is how to insert the generated image into an existing document
without first saving it out to a file?
If you can get it on the Clipboard, you can paste it in. But that's the
extent.

(Except where Word 2003 is concerned. If a document is in WordML (instead of
binary doc format) then the image can be put in the XML stream as Base64.)

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