// Create an instance of the class that imports CSV files
ExcelDocument workbook = new ExcelDocument();
// Import CSV file
workbook.easy_LoadCSVFile("C:\\Samples\\Tutorial30.csv");
' Create an instance of the class that imports CSV filesDim workbook As New ExcelDocument
' Import CSV file
workbook.easy_LoadCSVFile("C:\Samples\Tutorial30.csv")
C++// Create an instance of the class that imports CSV files
EasyXLS::IExcelDocumentPtr workbook;
hr = CoCreateInstance(__uuidof(EasyXLS::ExcelDocument),
NULL,
CLSCTX_ALL,
__uuidof(EasyXLS::IExcelDocument),
(void**) &workbook);
// Import CSV file
workbook->easy_LoadCSVFile("C:\\Samples\\Tutorial30.csv");
Click here to see Continuous Code ListingC++.NET// Create an instance of the class that imports CSV files
ExcelDocument ^workbook = gcnew ExcelDocument();
// Import CSV file
workbook->easy_LoadCSVFile("C:\\Samples\\Tutorial30.csv");
Click here to see Continuous Code Listing
// Create an instance of the class that imports CSV files
ExcelDocument workbook = new ExcelDocument();
// Import CSV file
workbook.easy_LoadCSVFile("C:\\Samples\\Tutorial30.csv");
.NET:// Create an instance of the class that imports CSV files
$workbook = new COM("EasyXLS.ExcelDocument");
// Import CSV file
$workbook->easy_LoadCSVFile("C:\\Samples\\Tutorial30.csv");
Click here to see Continuous Code ListingJava:// Create an instance of the class that imports CSV files
$workbook = new java("EasyXLS.ExcelDocument");
// Import CSV file
$workbook->easy_LoadCSVFile("C:\\Samples\\Tutorial30.csv");
Click here to see Continuous Code Listing
' Create an instance of the class that imports CSV filesSet workbook = Server.CreateObject("EasyXLS.ExcelDocument")
' Import CSV file
workbook.easy_LoadCSVFile("C:\Samples\Tutorial30.csv")
' Create an instance of the class that imports CSV filesSet workbook = CreateObject("EasyXLS.ExcelDocument")
' Import CSV file
workbook.easy_LoadCSVFile("C:\Samples\Tutorial30.csv")
' Create an instance of the class that imports CSV filesSet workbook = CreateObject("EasyXLS.ExcelDocument")
' Import CSV file
workbook.easy_LoadCSVFile("C:\Samples\Tutorial30.csv")
<!-- Create an instance of the class that imports CSV files --><cfobject type="java"class="EasyXLS.ExcelDocument"name="workbook"action="CREATE"><!-- Import CSV file --><cfset success = workbook.easy_LoadCSVFile("C:\Samples\Tutorial30.csv")>
.NET:# Create an instance of the class used to import/export Excel files
workbook = ExcelDocument()
# Import CSV file
workbook.easy_LoadCSVFile("C:\\Samples\\Tutorial30.csv")
Click here to see Continuous Code ListingJava:# Create an instance of the class used to import/export Excel files
workbook = gateway.jvm.ExcelDocument()
# Import CSV file
workbook.easy_LoadCSVFile("C:\\Samples\\Tutorial30.csv")
Click here to see Continuous Code Listing
The screen shot below represents the imported CSV file in the above code sample.
EasyXLS library can be used to import CSV file into DataTable. The DataTable can be the used as data source of a GridView, DataGridView, DataGrid or for any other purposes.
Read CSV file into GridView in C# and VB.NET from ASP.NET
EasyXLS library can be used to import CSV data into GridView from ASP.NET web applications.
The data from the CSV file can be read using ExcelDocument.easy_ReadCSVFile_AsDataSet method and then the DataTable for the GridView can be obtained from the imported DataSet.
EasyXLS library can be used to import CSV data into DataGridView from windows applications and windows forms.
The data from the CSV file can be read using ExcelDocument.easy_ReadCSVFile_AsDataSet method and then the DataTable for the DataGridView can be obtained from the imported DataSet.
EasyXLS library can be used to import CSV data into DataGrid from windows applications and windows forms.
The data from the CSV file can be read using ExcelDocument.easy_ReadCSVFile_AsDataSet method and then the DataTable for the DataGrid can be obtained from the imported DataSet.