有没有一种方法来生成word文档动态无机上有字

编程入门 行业动态 更新时间:2024-10-06 22:23:05
本文介绍了有没有一种方法来生成word文档动态无机上有字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我打算动态生成web服务器上的Word文档。有没有在C#这样的好方法吗?我知道我可以脚本的Word这样做,但我宁愿另一种选择。

I am planning on generating a Word document on the webserver dynamically. Is there good way of doing this in c#? I know I could script Word to do this but I would prefer another option.

推荐答案

我在一家公司的工作过去那种真正想要生成的Word文档,到底他们是完全满意,RTF文档是有一个名为.doc扩展名。 Word有没有问题识别和打开它们。

I've worked at a company in the past that really wanted generated word documents, in the end they were perfectly satisfied with RTF docs that had a ".doc" extension. Word has no problem recognizing and opening them.

用的iText生成的RTF文档.NET (免费的.NET库),该API是很容易使用,执行得非常好,你不需要字机,另外,您还可以扩展到生成PDF,HTML和文本文档中未来用很少的努力。四年后,我创建的解决方案还是很到位的,所以这是在iText的青睐一点点见证。

The RTF docs were generated with iText (free library), the API is pretty easy to use, performs extremely well, you don't need word on the machine, also, you could extend to generating PDF, HTML, and Text docs in the future with very little effort. After four years the solution I created is still in place, so that's a little testimony in iText's favor.

它看起来像官方 iText的页面表明 iText的夏普是最好的选择的.Net现在,所以这是另一种选择。

It looks like the official iText page suggests that iText Sharp is the best .Net choice right now, so that's another option

更多推荐

有没有一种方法来生成word文档动态无机上有字

本文发布于:2023-11-29 02:21:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1644909.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:上有   无机   方法来   文档   动态

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!