使用openXML对单词进行动态内容控制 [英] Dynamic Content control for word using openXML

查看:51
本文介绍了使用openXML对单词进行动态内容控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,

我有一个数据表,其中有一列和一组行。

我想使用OpenXML为WORD动态创建内容控件。作为TextLabel和Row值的Datatable columnname将来自内容控件。一切都应该只在运行时创建。



DataTable:

Dear Friends,
I am having one datatable which have Column and set of Rows.
I want to dynamically create content control for WORD using OpenXML. Datatable columnname as TextLabel and Row values will come in content control. Everything should be created in Runtime only.

DataTable:

NAME         ADDRESS
ALEX         INDIA 
DAVID        USA





这些数据应如下所示

WORD DOCUMENT





These datas should come like below
WORD DOCUMENT

ALEX<Label>       INDIA<contentControl>
--------------------------------
DAVID<Label>         USA<contentControl>
--------------------------------







请帮助朋友。 ..:)




Please Help friends... :)

推荐答案

你总是可以从这里开始。



http://msdn.microsoft.com/en-us/library/office/bb448854(v= office.15).aspx [ ^ ]



在那里你可以找到Open XML SDK以及入门信息。
You can always start here.

http://msdn.microsoft.com/en-us/library/office/bb448854(v=office.15).aspx[^]

There you can find the Open XML SDK and also getting started info.


这篇关于使用openXML对单词进行动态内容控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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