wordpress hit counter
Replacing a Picture in a Picture Content Control in an Open XML WordprocessingML Document - OpenXML Developer - Blog - OpenXML Developer
Goodbye and Hello

OpenXmlDeveloper.org is Shutting Down

There is a time for all good things to come to an end, and the time has come to shut down OpenXmlDeveloper.org.

Screen-casts and blog posts: Content on OpenXmlDeveloper.org will be moving to EricWhite.com.

Forums: We are moving the forums to EricWhite.com and StackOverflow.com. Please do not post in the forums on OpenXmlDeveloper.org. Instead, please post in the forums at EricWhite.com or at StackOverflow.com.

Please see this blog post for more information about my plans moving forward.  Cheers, Eric

Replacing a Picture in a Picture Content Control in an Open XML WordprocessingML Document

Replacing a Picture in a Picture Content Control in an Open XML WordprocessingML Document

  • Comments 6

This page has been moved.  You can find this content at the following link: Replacing a Picture in a Picture Content Control in an Open XML WordprocessingML Document

OpenXmlDeveloper.org is shutting down as an active site.  See this blog post at EricWhite.com for more information.

  • This is exactly what I am looking for, however the sample does not work for me. I get a bunch of cast errors.

    I am using OpenXml version 2.0.5022.0.

    /regards
  • Hi Jasp,

    My apologies - this was a problem with the poor approach of Community Server 2.0 for posting code, but the problem was mine for not validating that the posted code was not corrupted by the posting process.  The type parameters to the Elements and Descendants methods were automatically removed - the editor saw the angle brackets, and decided that they contained tags that it didn't understand.  I've updated the post with the correct code.

    The site will be updated to Community Server 5.5 in the near future, so we will have much better code posting capabilities.

    -Eric
  • Hi Eric, I have noticed that if I have two picture content control with diferent names, the images are set to the last one replaced, so both controls have the same image at the end, do you know how to fix this issue?

    thank you

  • blip.Embed return always the same rId for all picture content controls

  • All picture content controls will indeed have the same rId initially, because they all point to the same 'blank' image, so this method won't work with multiple images.

  • Made a blog post with a working solution: www.eelcomulder.nl/.../open-xml-setting-multiple-picture.html

Page 1 of 1 (6 items)