XDoc.Word
Features
Tech Specs
How-to C#
Pricing

C# Word Library
C# Word - Convert Word to HTML in C#.NET


How to Convert Word to HTML Webpage with C# Word Conversion SDK





Our Word to HTML converter library control is a 100% clean .NET document image solution, which is designed to help .NET developers convert Word to HTML webpage using simple C# code. This Visual C#.NET Word to HTML conversion control component makes it extremely easy for C# developers to convert and transform a multi-page Word document and save each Word page as a separate HTML file in .NET class application.

The HTML document file, converted by C#.NET Word to HTML converter toolkit SDK, preserves all the original anchors, links, bookmarks and font style that are included in target Word document file. Besides, the converted HTML webpage will have original formatting and interrelation of text and graphical elements of the Word.

This C#.NET Word to HTML conversion library can eliminate the crashing issue of web browser when it is trying to display a Word document file inside a browser window. Besides, this Word converting library also makes Word document visible and searchable on the Internet by converting Word document file into HTML webpage.


C#: Convert Word document to HTML5 files



This is a C# programming example for converting Word to VectorImages(HTML5/SVG).

//load word document
DOCXDocument doc = new DOCXDocument(@"C:\demoInput\demo.docx");

//convert word to html5
doc.ConvertToVectorImages(ContextType.HTML, @"C:\htmlOutput\", "test", RelativeType.HTML);

//convert word to svg files
doc.ConvertToVectorImages(ContextType.HTML, @"C:\svgOutput\", "test", RelativeType.SVG);