Is there a way to generate word documents dynamically without having word on the machine

后端 未结 8 1974
轻奢々
轻奢々 2021-01-30 15:15

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

8条回答
  •  半阙折子戏
    2021-01-30 15:29

    Word will quite happily open a HTML with a .doc extension. If you include an internal style sheet, you can have it fully formatted. There was previous post on this subject:

    Export to Word Document in C#

提交回复
热议问题