# HtmlToWord
**Repository Path**: DLX4/HtmlToWord
## Basic Information
- **Project Name**: HtmlToWord
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-10-08
- **Last Updated**: 2021-10-08
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# 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
1. user sends html+css text to server
2. save the html+css text to a html file
3. use word to open html file, then convert to word file
4. return a download link
5. add a url mapping in nginx, then the download part will be handled by nginx
# Blog
[原来,这才是html+css导出word最佳方式!](https://juejin.im/post/5dcd7132f265da0bd20aeec7)