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

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


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




Excel to HTML Conversion Overview



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


Related .net document control helps:
asp.net pdf page: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net edit pdf text: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
asp.net annotate pdf: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net edit pdf image: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
asp.net document viewer: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
asp.net pdf viewer: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET


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


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




C#: Convert Excel document to HTML5 files



Add necessary references:


  RasterEdge.Imaging.Basic.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XDoc.Office.Inner.Office03.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.XDoc.Excel.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.SVG.dll


Using namespaces:


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.Excel;


This is a C# programming example for converting Excel to HTML5.




//load excel document
XLSXDocument docx = new XLSXDocument(@"C:\demoInput\demo.docx");

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

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