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 pdf document viewer: ASP.NET PDF Document Viewer in C#: view, annotate, redact Adobe PDF files online in ASP.NET
view document asp.net: View multiple document formats in ASP.NET, MVC, Ajax, Azure using C# control
asp.net pdf file permission: ASP.NET PDF File Permission Control: apply, remove PDF file permission settings in C#
asp.net iis document viewer: C# HTML5 Viewer: Deployment on IIS
asp.net document viewer: EdgeDoc ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online using ASP.NET Web Con...
asp.net create pdf: ASP.NET Create PDF Document Control: create, convert PDF file from Word, Excel, Tiff file formats in C# ASP.NET
asp.net azure document viewer: ASP.NET Azure Document Viewer: view, annotate files online using ASP.NET Cloud Service


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