Convert HTML to Word document using CKEditor and MariGold.OpenXHTML
DRANK

IntroductionMariGold.OpenXHTML is a GitHub open source library to convert HTML documents into word documents. It internally uses Open XML SDK to create word documents. The CKEditor is a popular free tool for formatting the HTML in web sites. By integrating these together, we can develop an online HTML to Word converter. We will create an ASP.NET MVC project to demonstrate this.Using the codeThis tutorial is using Visual Studio 2015 community edition. The first part of this tutorial will be explaining how to integrate CKEditor in MVC project and the second part will be discussing about the conversion of HTML to a word document from the output of CKEditor.Setup the CKEditor Download your preferred package from the CKEditor web site. This tutorial will be using the full package which contains all the plugins to experiment with. Open the visual studio and create a new MVC project with default templates. We can re-use the Home controller and Index cshtml for our demo purpose.Extract the do…

codeproject.com
Related Topics: HTML Visual Studio GitHub