EasyXLS

Import Excel file to List in .NET, Java and other programming languages

EasyXLS™ library allows you to import Excel data to List. The data can be imported from an Excel sheet or from the active Excel sheet. The entire sheet data or only data from ranges of cells can be imported.

The list contains the Excel rows, each row being an EasyXLS.Util.List object containing the cell values. EasyXLS.Util.List extends System.Collections.ArrayList for .NET version and java.util.Vector for Java version.

EasyXLS can be successfully used to also import large Excel files having big volume of data with fast importing time.

EasyXLS permits you to import Excel files without Excel installed, without Interop, without OLEDB or any other additional software installed.

Source code sample

The below example shows how to import Excel to List in .NET, Java, PHP, ASP, C++, VB6, VBS and Coldfusion.

C#.NET
VB.NET
C++
Java
PHP
ASP
VB6
VBS
Coldfusion
Python

This screen shot shows the imported data from Excel sheet into List.

imported Excel data into List


Import Excel file having one sheet to List

Importing the Excel file data to List, if the Excel file has only one sheet, is the easiest approach. The Excel data can be imported with one single line of code using:
- ExcelDocument.easy_ReadXLSXActiveSheet_AsList method for XLSX file
- ExcelDocument.easy_ReadXLSBActiveSheet_AsList method for XLSB file
- ExcelDocument.easy_ReadXLSActiveSheet_AsList method for XLS file

The above code sample shows how to achieve this goal.

Import Excel file having multiple sheets to List

There are three approaches for importing data from an Excel file with multiple sheets.

I. Usually the first sheet is the active sheet inside an Excel file. If this is your case or if you are importing data from another active sheet use:
- ExcelDocument.easy_ReadXLSXActiveSheet_AsList method for XLSX file
- ExcelDocument.easy_ReadXLSBActiveSheet_AsList method for XLSB file
- ExcelDocument.easy_ReadXLSActiveSheet_AsList method for XLS file

II. For importing data from an Excel sheet and the name of the sheet is known, EasyXLS recommends the use of:
- ExcelDocument.easy_ReadXLSXSheet_AsList method for XLSX file
- ExcelDocument.easy_ReadXLSBSheet_AsList method for XLSB file
- ExcelDocument.easy_ReadXLSSheet_AsList method for XLS file

III. For importing data from an Excel sheet and the name of the sheet is not known, the first step is to find the sheet name using:
- ExcelDocument.easy_ReadXLSXFile_SheetNames method for XLSX file
- ExcelDocument.easy_ReadXLSBFile_SheetNames method for XLSB file
- ExcelDocument.easy_ReadXLSFile_SheetNames method for XLS file

Then, import the sheet data in List using:
- ExcelDocument.easy_ReadXLSXSheet_AsList method for XLSX file
- ExcelDocument.easy_ReadXLSBSheet_AsList method for XLSB file
- ExcelDocument.easy_ReadXLSSheet_AsList method for XLS file

Import range of Excel cells to List

EasyXLS enables you to import Excel data to List either from the entire sheet or from a range of cells. Importing only a range of cells is a very useful option especially for large Excel files because it reduces the speed of the import process.

In order to import multiple cell ranges at once from Excel sheet, the range parameter must be passed to the method as union of ranges (multiple ranges separated by comma).

All the methods that allow importing Excel to List have parameters that permit importing only ranges of cells.

Import XLSX, XLSB, XLSM and XLS files to List

This code sample shows how to import XLSX file to List. Similarly, you can import XLSM, XLSB, XLS files to List using:
- ExcelDocument.easy_ReadXLSXActiveSheet_AsList or ExcelDocument.easy_ReadXLSXSheet_AsList method for XLSX and XLSM files
- ExcelDocument.easy_ReadXLSBActiveSheet_AsList or ExcelDocument.easy_ReadXLSBSheet_AsList method for XLSB files
- ExcelDocument.easy_ReadXLSActiveSheet_AsList or ExcelDocument.easy_ReadXLSSheet_AsList method for XLS files

Getting started with EasyXLS Excel library

To download the trial version of EasyXLS Excel Library, press the below button:

Download EasyXLS™ Excel Library for .NET and Java

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



Available for: Professional, Excel Reader
Go to top

EasyXLS Excel libraries:

.NET
.NET Excel Library
full .NET version to import, export or convert Excel files
.NET Excel Reader
.NET version to read and import Excel files
COM+ Excel Library
full COM+ version to import, export or convert Excel files
COM+ Excel Reader
COM+ version to read and import Excel files
-
Java
Java Excel Library
full Java version to import, export or convert Excel files
Java Excel Reader
Java version to read and import Excel files
Download EasyXLS™ Excel Library for .NET and Java

File formats:

MS Excel 97 - 2003
MS Excel 2007 - 2019
MS Excel 2021
Office 365
XLSXXLSMXLSBXLS
XMLHTMLCSVTXT