As Dr. TJ says, you can use the Open XML SDK . We used Word.Interop, but sometimes it stopped, and Microsoft does not recommend using it as a document formatting on the server side, so the Open XML SDK makes it easy to create text documents in DOCX and Open XML formats. This allows you to cope well with scalability, confidence (files, if damaged, can be restored), as well as other very subtle characteristics.
source share