Using Microsoft.Office.Interop.Word assembly

后端 未结 3 2130
感情败类
感情败类 2021-01-06 09:54

I have to do a word document programming in c#. Is there any way to access Microsoft.Office.Interop.Word assembly without installing Microsoft word? I tried to install Offic

3条回答
  •  情歌与酒
    2021-01-06 10:35

    As Dr TJ says, you could use Open XML SDK for it. We used Word.Interop but it halt sometimes, and it is not recommend for Microsoft, to use it as a server side document formatting, so Open XML SDK lets you creates word documents on DOCX and Open XML formats very easily. It lets you going well with scability, confidence ( the files, if it is corrupted can be rebuild ), and another very fine characteristics.

提交回复
热议问题