Best way to export html to Word without having MS Word installed?

后端 未结 11 2271
执笔经年
执笔经年 2020-12-10 03:13

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

相关标签:
11条回答
  • 2020-12-10 03:30

    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).

    0 讨论(0)
  • 2020-12-10 03:30

    use this link to export to word, but here image wont work:

    http://www.jqueryscript.net/other/Export-Html-To-Word-Document-With-Images-Using-jQuery-Word-Export-Plugin.html

    0 讨论(0)
  • 2020-12-10 03:37

    I presume from the "C#" tag you wish to achieve this programmatically.

    Try Aspose.Words for .NET.

    0 讨论(0)
  • 2020-12-10 03:37

    You can open html files with Libreoffice Writer. Then you can export as PDF from File menu. Also browsers can export html as a PDF file.

    0 讨论(0)
  • 2020-12-10 03:41

    i believe open office can both open .html files and create .doc files

    0 讨论(0)
提交回复
热议问题