使用XML和C#创建Word文档 [英] Creating a Word Document using XML and C#
问题描述
我已经为报告创建了一个xml模板.通过使用C#创建的程序,用户应该能够添加信息以根据自己的需求个性化此报告.
I've created an xml template for a report. A user is supposed to be able to add information to personalise this report to their own needs by a program im creating in C#
如何编辑实体的内容,然后从用户放入文本框中的内容中编辑出来,然后在文字上显示出来?
How can I edit the contents of an entity then from what a user puts into a textbox and then display this on word?
推荐答案
网络上有大量有关使用XML和C#创建Word文档的信息.有很多可能性.
There's a ton of information on the net about creating Word documents using XML and C#. There are lots of possibilities.
Microsoft发布了他们称为"打开XML格式SDK 的内容.这有帮助.
Microsoft publishes something they call the "Open XML Format SDK" that helps with this.
尝试此搜索.
此页面提供了一堆如何"文章,这些文章进行了总结如何使用XML和C#修饰Word文档.
This page provides a bunch of "how to" articles summarizing how to fiddle with Word documents using XML and C#.
这篇关于使用XML和C#创建Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!