Hi Scott,
Does anyone have some code where I can push an image object that I pull from
a webservice (as a byte array) into an Image ContentControl?
Assuming we're talking about a Word 2007 ContentControl, you can
1. Put the image on the Clipboard, then use the Paste method
2. Save the image stream as a file, to disk, then use the
InlineShapes.AddPicture method
3. Convert the byte array to the required (base64, I think) XML code format
required by the Ecma OpenXML file format (see OpenXMLDeveloper.org) and put
that into a Custom Part associated with the content control.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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