我打算动态生成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文档动态无机上有字
发布评论