将内容控件的内容导出到另一个Word文档中 [英] Export the content of content control into another word document

查看:111
本文介绍了将内容控件的内容导出到另一个Word文档中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Word文档,其中包含许多内容控件.如何将内容控件的内容导出到另一个Word文档中? 我正在使用C#并打开xml SDK. 问候.

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.

推荐答案

以下两篇很棒的文章将向您展示如何做到这一点:

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

  1. 使用嵌套的内容控件 从中提取数据和内容 打开XML WordprocessingML 文件
  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

这篇关于将内容控件的内容导出到另一个Word文档中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆