HTML转换到Microsoft Word的.doc在.NET [英] Convert HTML to Microsoft Word .doc in .NET

查看:133
本文介绍了HTML转换到Microsoft Word的.doc在.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是HTML转换成MS Word中的.doc在.NET中的最佳方法是什么?

What is the best way to convert HTML into MS Word .doc in .NET?

第三方组件?

推荐答案

MS警告不要自动运行Word时,它不是被监视/监督/由最终用户,例如控制因为它可能会弹出一个消息框;所以如果你想做到这一点的服务器上,然后一个第三方组件可能会比自动字好。

MS warns against automating Word when it's not being watched/supervised/controlled by an end-user, e.g. because it may pop a message box; so if you want to do this on a server then a 3rd party component may be better than automating Word.

您还可以学习写Word文档格式的自己(这是一个文档的XML格式),但(学习和编写格式)比你想可能更多的麻烦。

You can also learn to write the Word document format yourself (it's a documented XML format), but that (learning and writing that format) is probably more trouble than you want.

另外请注意,Word可以打开HTML:这样一些(也许是轻微的)程度,HTML已经是一个Word文档

Also, note that Word can open HTML: so to some (perhaps slight) extent, HTML already is a Word document.

这篇关于HTML转换到Microsoft Word的.doc在.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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