Export the content of content control into another word document

冷暖自知 提交于 2019-12-11 03:39:03

问题


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.


回答1:


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



回答2:


content controls are not bound to CustomXMLParts. I'm using Altchunck to merge multiple docx files into one document. Each docx file is inserted within a content control.The merged document is opened in a winforms application using DSOFramer. I want to update the source docx file when the content control content is modified. Regards.



来源:https://stackoverflow.com/questions/3610143/export-the-content-of-content-control-into-another-word-document

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!