库生成的docx文件(打开XML) [英] Libraries to generate docx files (Open XML)

查看:413
本文介绍了库生成的docx文件(打开XML)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要从一个asp.net mvc的网站生成DOCX文档。该文件将有很大差异,但他们是非常基本的 - 与众不同的唯一的事情是需要包括表。生成的文件的C#代码将需要创建一个类似于HTML / CSS为好。我们没有时间去购买一个商业产品这一点。

We need to generate docx documents from an asp.net mvc site. The documents will vary a great deal, but they are pretty basic - the only thing out of the ordinary is the need to include tables. The c# code that generates the documents will need to create similar html/css as well. We don't have time to buy a commercial product for this.

难道只读取规格,并编写一些代码来吐出XML,还是有可用的库会做的伎俩?

Should we just read the spec and write some code to spit out the XML, or are there libraries available that would do the trick?

编辑:看起来像微软的Open XML库是一个显而易见的选择,但没有任何人有任何的经验吗?而且任何人都可以指向使用它的一些示例代码?

looks like Microsoft's Open XML library is an obvious choice, but does anyone have any experience with it? And can anyone point to some sample code that uses it?

推荐答案

试试这个...的 http://openxmlwriter.codeplex.com/

codeplex.com有很多其他库了。

codeplex.com has a lot of other libraries too.

http://www.codeplex.com/site/search?查询= OPENXML

这篇关于库生成的docx文件(打开XML)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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