Search code examples
ms-wordopenxmlword-contentcontrol

Export the content of content control into another word document


I have a word document with many content controls. How can I export the content of content control into another word document? I'm using C# and open xml sdk. Regards.


Solution

  • Here are two great articles that will show you how to do this:

    1. Using LINQ to XML to Retrieve Content Controls in Word 2007
    2. Using Nested Content Controls for Data and Content Extraction from Open XML WordprocessingML Documents