简体   繁体   English

使用XML和C#创建Word文档

[英]Creating a Word Document using XML and C#

I've created an xml template for a report. 我已经为报告创建了一个xml模板。 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# 通过使用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? 我该如何编辑实体的内容,然后从用户放入文本框中的内容,然后在文字上显示出来?

There's a ton of information on the net about creating Word documents using XML and C#. 网上有大量有关使用XML和C#创建Word文档的信息。 There are lots of possibilities. 有很多可能性。

Microsoft publishes something they call the " Open XML Format SDK " that helps with this. Microsoft发布了他们称为“ Open XML Format SDK ”的内容,以提供帮助。

Try this search . 试试这个搜索

This page provides a bunch of "how to" articles summarizing how to fiddle with Word documents using XML and C#. 该页面提供了大量“如何”文章,总结了如何使用XML和C#修饰Word文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM