



User Guide EasyXLS Basics Convert files Convert Excel file to HTML Tweet Convert Excel file to HTML Concept EasyXLS™ library allows you to convert an Excel file to HTML. The Excel file can be in XLSX, XLSM, XLSB or XLS file format.



EasyXLS can be successfully used inclusively to convert large Excel files to HTML, Excel files with big volume of data with fast converting time. EasyXLS permits you to convert Excel to HTML file without Excel installed, without Interop or any other additional software installed.



The conversion is made in two steps. First, the Excel file is imported and after that, the data is exported to HTML file. Once the Excel file was loaded in memory, optionally, the user can process data, add more features (like formulas, cell formatting, hyperlinks or images) and save the file back in HTML format. Concept in action The below example is a common code about how to convert Excel file to HTML. Source code sample C#.NET VB.NET C++.NET J#.NET Java PHP ASP C++ VB6 VBS Coldfusion // Create an instance of the class used to import/export Excel files ExcelDocument workbook = new ExcelDocument(); // Import Excel file workbook.easy_LoadXLSXFile("C:\\Samples\\file.xlsx"); // Export HTML file workbook.easy_WriteHTMLFile("C:\\Samples\\Excel to HTML.html"); ' Create an instance of the class used to import/export Excel files Dim workbook As New ExcelDocument() ' Import Excel file workbook.easy_LoadXLSXFile("C:\Samples\file.xlsx") ' Export HTML file workbook.easy_WriteHTMLFile("C:\Samples\Excel to HTML.html") // Create an instance of the class used to import/export Excel files ExcelDocument *workbook = new ExcelDocument(); // Import Excel file workbook->easy_LoadXLSXFile("C:\\Samples\\file.xlsx"); // Export HTML file workbook->easy_WriteHTMLFile("C:\\Samples\\Excel to HTML.html"); // Create an instance of the class used to import/export Excel files ExcelDocument workbook = new ExcelDocument(); // Import Excel file workbook.easy_LoadXLSXFile("C:\\Samples\\file.xlsx"); // Export HTML file workbook.easy_WriteHTMLFile("C:\\Samples\\Excel to HTML.html"); // Create an instance of the class used to import/export Excel files ExcelDocument workbook = new ExcelDocument(); // Import Excel file workbook.easy_LoadXLSXFile("C:\\Samples\\file.xlsx"); // Export HTML file workbook.easy_WriteHTMLFile("C:\\Samples\\Excel to HTML.html"); // Create an instance of the class used to import/export Excel files $workbook = new COM("EasyXLS.ExcelDocument"); // Import Excel file $workbook->easy_LoadXLSXFile("C:\Samples\file.xlsx"); // Export HTML file $workbook->easy_WriteHTMLFile("C:\Samples\Excel to HTML.html"); ' Create an instance of the class used to import/export Excel files set workbook = Server.CreateObject("EasyXLS.ExcelDocument") ' Import Excel file workbook.easy_LoadXLSXFile("C:\Samples\file.xlsx") ' Export HTML file workbook.easy_WriteHTMLFile("C:\Samples\Excel to HTML.html") // Create an instance of the class used to import/export Excel files EasyXLS::IExcelDocumentPtr workbook; hr = CoCreateInstance(__uuidof(EasyXLS::ExcelDocument), NULL, CLSCTX_ALL, __uuidof(EasyXLS::IExcelDocument), (void**) &workbook) ; // Import Excel file workbook->easy_LoadXLSXFile("C:\\Samples\\file.xlsx"); // Export HTML file workbook->easy_WriteHTMLFile("C:\\Samples\\Excel to HTML.html"); ' Create an instance of the class used to import/export Excel files Set workbook = CreateObject("EasyXLS.ExcelDocument") ' Import Excel file workbook.easy_LoadXLSXFile("C:\Samples\file.xlsx") ' Export HTML file workbook.easy_WriteHTMLFile("C:\Samples\Excel to HTML.html") ' Create an instance of the class used to import/export Excel files set workbook = CreateObject("EasyXLS.ExcelDocument") ' Import Excel file workbook.easy_LoadXLSXFile("C:\Samples\file.xlsx") ' Export HTML file workbook.easy_WriteHTMLFile("C:\Samples\Excel to HTML.html") <!-- Create an instance of the class used to import/export Excel files --> <cfobject type="java" class="EasyXLS.ExcelDocument" name="workbook" action="CREATE"> <!-- Import Excel file --> <cfset ret = workbook.easy_LoadXLSXFile("C:\Samples\file.xlsx")> <!-- Export HTML file --> <cfset ret = workbook.easy_WriteHTMLFile("C:\Samples\Excel to HTML.html")> Convert XLSX to HTML EasyXLS allows you to convert Excel XLSX file to HTML. The above code sample shows how to achieve this goal, by using ExcelDocument.easy_LoadXLSXFile method. See also: Convert XLSM to HTML EasyXLS allows you to convert Excel XLSM file to HTML. Similarly, as shown in the above code sample, using ExcelDocument.easy_LoadXLSXFile method, the XLSM file can be converted to HTML file. See also: Convert XLSB to HTML EasyXLS allows you to convert Excel XLSB file to HTML. Similarly, as shown in the above code sample, using ExcelDocument.easy_LoadXLSBFile method, the XLSB file can be converted to HTML file. See also: Convert XLS to HTML EasyXLS allows you to convert Excel XLS file to HTML. Similarly, as shown in the above code sample, using ExcelDocument.easy_LoadXLSFile method, the XLS file can be converted to HTML file. See also: Getting started with EasyXLS Excel library To download the trial version of EasyXLS Excel Library, press the below button:





If you already own a license key, you may login and download EasyXLS from your account.

See also:

Related methods:

Available for: Professional