The project provides a http service to covert html to word by Microsoft.Office.Interop.Word. And the http server is implemented by WCF webHttpBinding.
- .net framework 4.7
- Office word 2013
- Visual Studio 2017
First, use nuget to install all dependent packages.
Second, build HtmlToWord.ConsoleHost.
If you need to host the service by Windows Service, please build HtmlToWord.WindowsService.
- user sends html+css text to server
- save the html+css text to a html file
- use word to open html file, then convert to word file
- return a download link
- add a url mapping in nginx, then the download part will be handled by nginx