The simplest way to convert Excel to HTML is to use the Excel "Save as Web Page" function. But what if it is needed to convert files inside C#/VB.NET/ASP.NET project and MS Excel is not installed? The best and the fastest way is a using some .Net libraries. One of these libraries is introduced by Elerium Software. Elerium Excel to HTML .NET is a high performance component enabling developer to convert Excel to HTML files. The converter supports the following excel formats: XLS, XLSX, CSV.
First of all, a developer must install Excel to HTML .NET component to the project:
1. Download the latest version of the component from this link: http://www.eleriumsoft.com/
2. Extract the downloaded archive and put the Excel.dll component into /bin folder of the project.
3. Add the component to the “using” section:
When the component is connected to the project, a developer can convert the whole excel spreadsheet or only range of excel cell to HTML file. This code will display how simple to convert full excel spreadsheet to html file:
static void Main(string
//Read excel file.
ExcelWorkbook wbook = ExcelWorkbook.ReadXLSX(@"
ExcelToHtml converter = new ExcelToHtml(
//Display mesh grid.
//Save specified worksheet to HTML file.
string html_file = @"..\..\..\ExportExcelToHtml.html";
//Open specified file.
For more information about the component please visit the product page: