HtmlToWord
HtmlToWord copied to clipboard
Convert html to word using Microsoft.Office.Interop.Word
HtmlToWord
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.
Prequisites
- .net framework 4.7
- Office word 2013
- Visual Studio 2017
How to build
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.
The request workflow
- 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