C#: Online Guide
How To: Word SDK
Convert Word to HTML5
Convert Word to HTML5
  |  
Home ›› XDoc.Word ›› C# Word: Convert Word to HTML5

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


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




Word to HTML Conversion Overview



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.


Related .net document control helps:
asp.net ppt viewer: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET
asp.net pdf viewer control: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net tiff viewer control: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control
asp.net edit pdf page: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net annotate pdf control: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
asp.net image viewer zoom: ASP.NET Image Viewer Control(MVC & WebForms): view, annotate, redact, convert image files in html, JQuery
asp.net open word document in browser: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications


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



Add references:


  RasterEdge.Imaging.Basic.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.XDoc.Office.Inner.Office03.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.XDoc.Word.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.SVG.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.Word;


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);