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 document viewer in c#: EdgeDoc ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online using ASP.NET Web Con...
c# asp.net document viewer: ASP.NET Document Viewer Control in C#: View, Annotate, Redact web document files in ASP.NET using C#
asp.net pdf editor using c#: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net convert pdf using c#: ASP.NET Convert PDF Control: Convert, export PDF to Word, HTML, Tiff files in C# ASP.NET
c# asp.net webforms document viewer: ASP.NET WebForms application document viewer control: view, annotate, redact, convert files online in ASP.NET
c# asp.net word document viewer: ASP.NET Office Word Document Viewer: view MS Office Word files online using C# in ASP.NET web applications
asp.net pdf file permission using c#: ASP.NET PDF File Permission Control: apply, remove PDF file permission settings in C#

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:












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