Export to Word Document in C#

后端 未结 7 692
你的背包
你的背包 2020-12-10 18:55

I\'m looking for a .NET library that will allow creation of a Word document. I need to export HTML based content to a Word doc (97-2003 format, not docx).

I know th

7条回答
  •  悲哀的现实
    2020-12-10 19:46

    I tried just opening the html directly in word, which technically works except for one thing... My html doc also contains CSS, and when opening in Word, it completely ignores the CSS so I no longer have any of the formatting. I realize that I wouldn't get everything out of the CSS but I would at least like to still have the specified fonts, font sizes, etc... Any way to get it to read the CSS? Would it work if I somehow converted the CSS to be embedded in the HTML??

提交回复
热议问题