将Word导出为Word而无需安装MS Word的最佳方法? [英] Best way to export html to Word without having MS Word installed?

查看:190
本文介绍了将Word导出为Word而无需安装MS Word的最佳方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在没有安装Microsoft Word的情况下将简单的html页面导出为Word(.doc格式,而不是.docx)? 如果你只有简单的HTML页面,你可以用Word打开。



否则有一些库可以做到这一点,但我我最后的想法是,如果你使用的是ASP.NET,试着添加 application / msword code>标题,你可以将它保存为一个Word文档(它不会是一个真正的Word文档,只有一个HTML重命名为doc才能打开)。


Is there a way to export a simple html page to Word (.doc format, not .docx) without having Microsoft Word installed?

解决方案

If you have only simple HTML pages as you said, it can be opened with Word.

Otherwise there are some libraries which can do this, but I don't have experience with them.

My last idea is that if you are using ASP.NET, try to add application/msword to the header and you can save it as a Word document (it won't be a real Word doc, only an HTML renamed to doc to be able to open).

这篇关于将Word导出为Word而无需安装MS Word的最佳方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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