EasyXLS™ library allows you to convert an Excel file to CSV. 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 CSV, Excel files with big volume of data with fast converting time.
EasyXLS permits you to convert Excel to CSV file without Excel installed, without Interop or any other additional software installed.
EasyXLS also supports CSV files with specific character encoding.
The conversion is made in two steps. First, the Excel file is imported and after that, the data is exported to CSV file. Once the Excel file was loaded in memory, optionally, the user can update data and save the file back in CSV format.
// 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 CSV file
workbook.easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv");
' Create an instance of the class used to import/export Excel filesDim workbook As New ExcelDocument
' Import Excel file
workbook.easy_LoadXLSXFile("C:\Samples\file.xlsx")
' Export CSV file
workbook.easy_WriteCSVFile("C:\Samples\Excel to CSV.csv")
C++// 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 CSV file
workbook->easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv");
C++.NET// Create an instance of the class used to import/export Excel files
ExcelDocument ^workbook = gcnew ExcelDocument();
// Import Excel file
workbook->easy_LoadXLSXFile("C:\\Samples\\file.xlsx");
// Export CSV file
workbook->easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv");
// 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 CSV file
workbook.easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv");
.NET:// 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 CSV file
$workbook->easy_WriteCSVFile("C:\Samples\Excel to CSV.csv");
Java:// Create an instance of the class used to import/export Excel files
$workbook = new java("EasyXLS.ExcelDocument");
// Import Excel file
$workbook->easy_LoadXLSXFile("C:\Samples\file.xlsx");
// Export CSV file
$workbook->easy_WriteCSVFile("C:\Samples\Excel to CSV.csv");
' Create an instance of the class used to import/export Excel filesset workbook = Server.CreateObject("EasyXLS.ExcelDocument")
' Import Excel file
workbook.easy_LoadXLSXFile("C:\Samples\file.xlsx")
' Export CSV file
workbook.easy_WriteCSVFile("C:\Samples\Excel to CSV.csv")
' Create an instance of the class used to import/export Excel filesSet workbook = CreateObject("EasyXLS.ExcelDocument")
' Import Excel file
workbook.easy_LoadXLSXFile("C:\Samples\file.xlsx")
' Export CSV file
workbook.easy_WriteCSVFile("C:\Samples\Excel to CSV.csv")
' Create an instance of the class used to import/export Excel filesset workbook = CreateObject("EasyXLS.ExcelDocument")
' Import Excel file
workbook.easy_LoadXLSXFile("C:\Samples\file.xlsx")
' Export CSV file
workbook.easy_WriteCSVFile("C:\Samples\Excel to CSV.csv")
<!-- 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 CSV file --><cfset ret = workbook.easy_WriteCSVFile("C:\Samples\Excel to CSV.csv")>
.NET:# Create an instance of the class used to import/export Excel files
workbook = ExcelDocument()
# Import Excel file
workbook.easy_LoadXLSXFile("C:\\Samples\\file.xlsx")
# Export CSV file
workbook.easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv")
Java:# Create an instance of the class used to import/export Excel files
workbook = gateway.jvm.ExcelDocument()
# Import Excel file
workbook.easy_LoadXLSXFile("C:\\Samples\\file.xlsx")
# Export CSV file
workbook.easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv")
Convert Excel to CSV file with encoding
EasyXLS allows you to convert Excel file into CSV file having a specific encoding. The below source code sample shows how to achieve this goal.
// Create an instance of the class used to import/export Excel files
ExcelDocument workbook = new ExcelDocument();
// Import Excel file having data in cells with special character encoding
workbook.easy_LoadXLSXFile("C:\\Samples\\Excel.xlsx");
// Export CSV file with specific encoding
System.IO.StreamWriter streamWriter = new System.IO.StreamWriter(
"C:\\Samples\\Excel to CSV.csv", false, System.Text.Encoding.Unicode);
workbook.easy_WriteCSVFile(streamWriter, "Sheet1");
' Create an instance of the class used to import/export Excel filesDim workbook As New ExcelDocument()
' Import Excel file having data in cells with special character encoding
workbook.easy_LoadXLSXFile("C:\Samples\Excel.xlsx")
' Export CSV file with specific encodingDim streamWriter As System.IO.StreamWriter = New System.IO.StreamWriter(
"C:\Samples\Excel to CSV.csv", False, System.Text.Encoding.Unicode)
workbook.easy_WriteCSVFile(streamWriter, "Sheet1")
C++// 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 having data in cells with special character encoding
workbook->easy_LoadXLSXFile("C:\\Samples\\Excel.xlsx");
// Export CSV file with specific encoding
workbook->easy_WriteCSVFile_4("C:\\Samples\\Excel to CSV.csv", "Unicode", "Sheet1");
C++.NET// Create an instance of the class used to import/export Excel files
ExcelDocument ^workbook = gcnew ExcelDocument();
// Import Excel file having data in cells with special character encoding
workbook->easy_LoadXLSXFile("C:\\Samples\\Excel.xlsx");
// Export CSV file with specific encoding
System::IO::StreamWriter ^streamWriter = gcnew System::IO::StreamWriter(
"C:\\Samples\\Excel to CSV.csv", false, System::Text::Encoding::Unicode);
workbook->easy_WriteCSVFile(streamWriter, "Sheet1");
// Create an instance of the class used to import/export Excel files
ExcelDocument workbook = new ExcelDocument();
// Import Excel file having data in cells with special character encoding
workbook.easy_LoadXLSXFile("C:\\Samples\\Excel.xlsx");
// Export CSV file with specific encoding
java.io.OutputStream outputStream = new java.io.FileOutputStream(
"C:\\Samples\\Excel to CSV.csv");
java.io.OutputStreamWriter outputStreamWriter = new java.io.OutputStreamWriter(
outputStream, java.nio.charset.Charset.forName("Unicode"));
workbook.easy_WriteCSVFile(outputStreamWriter, "Sheet1");
.NET:// Create an instance of the class used to import/export Excel files
$workbook = new COM("EasyXLS.ExcelDocument");
// Import Excel file having data in cells with special character encoding
$workbook->easy_LoadXLSXFile("C:\Samples\Excel.xlsx");
// Export CSV file with specific encoding
$workbook->easy_WriteCSVFile_4("C:\Samples\Excel to CSV.csv", "Unicode", "Sheet1");
Java:// Create an instance of the class used to import/export Excel files
$workbook = new java("EasyXLS.ExcelDocument");
// Import Excel file having data in cells with special character encoding
$workbook->easy_LoadXLSXFile("C:\Samples\Excel.xlsx");
// Export CSV file with specific encoding
$workbook->easy_WriteCSVFile("C:\Samples\Excel to CSV.csv", "Unicode", "Sheet1");
' Create an instance of the class used to import/export Excel filesset workbook = Server.CreateObject("EasyXLS.ExcelDocument")
' Import Excel file having data in cells with special character encoding
workbook.easy_LoadXLSXFile("C:\Samples\Excel.xlsx")
' Export CSV file with specific encoding
workbook.easy_WriteCSVFile_4 "C:\Samples\Excel to CSV.csv", "Unicode", "Sheet1"
' Create an instance of the class used to import/export Excel filesSet workbook = CreateObject("EasyXLS.ExcelDocument")
' Import Excel file having data in cells with special character encoding
workbook.easy_LoadXLSXFile("C:\Samples\Excel.xlsx")
' Export CSV file with specific encoding
workbook.easy_WriteCSVFile_4 "C:\Samples\Excel to CSV.csv", "Unicode", "Sheet1"
' Create an instance of the class used to import/export Excel filesset workbook = CreateObject("EasyXLS.ExcelDocument")
' Import Excel file having data in cells with special character encoding
workbook.easy_LoadXLSXFile("C:\Samples\Excel.xlsx")
' Export CSV file with specific encoding
workbook.easy_WriteCSVFile_4 "C:\Samples\Excel to CSV.csv", "Unicode", "Sheet1"
<!-- 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 having data in cells with special character encoding --><cfset ret = workbook.easy_LoadXLSXFile("C:\Samples\Excel.xlsx")><!-- Export CSV file with specific encoding --><cfset ret = workbook.easy_WriteCSVFile("C:\Samples\Excel to CSV.csv",
"Unicode", "Sheet1")>
.NET:# Create an instance of the class used to import/export Excel files
workbook = ExcelDocument()
# Import Excel file having data in cells with special character encoding
workbook.easy_LoadXLSXFile("C:\\Samples\\Excel.xlsx")
# Export CSV file with specific encoding
streamWriter = System.IO.StreamWriter(
"C:\\Samples\\Excel to CSV.csv", False, System.Text.Encoding.Unicode)
workbook.easy_WriteCSVFile(streamWriter, "Sheet1")
Java:# Create an instance of the class used to import/export Excel files
workbook = gateway.jvm.ExcelDocument()
# Import Excel file having data in cells with special character encoding
workbook.easy_LoadXLSXFile("C:\\Samples\\Excel.xlsx")
# Export CSV file with specific encoding
workbook.easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv", "Unicode", "Sheet1")
Convert XLSX to CSV
EasyXLS allows you to convert Excel XLSX file to CSV. The above code samples show how to achieve this goal, by using ExcelDocument.easy_LoadXLSXFile method.
EasyXLS allows you to convert Excel XLSM file to CSV using ExcelDocument.easy_LoadXLSXFile method to import the XLSM file. The below code sample shows how to achieve this goal.
// Create an instance of the class used to import/export Excel files
ExcelDocument workbook = new ExcelDocument();
// Import XLSM file
workbook.easy_LoadXLSXFile("C:\\Samples\\Excel.xlsm");
// Export CSV file
workbook.easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv", "Sheet1");
' Create an instance of the class used to import/export Excel filesDim workbook As New ExcelDocument
' Import XLSM file
workbook.easy_LoadXLSXFile("C:\Samples\Excel.xlsm")
' Export CSV file
workbook.easy_WriteCSVFile("C:\Samples\Excel to CSV.csv", "Sheet1")
C++// 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 XLSM file
workbook->easy_LoadXLSXFile("C:\\Samples\\Excel.xlsm");
// Export CSV file
workbook->easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv", "Sheet1");
C++.NET// Create an instance of the class used to import/export Excel files
ExcelDocument ^workbook = gcnew ExcelDocument();
// Import XLSM file
workbook->easy_LoadXLSXFile("C:\\Samples\\Excel.xlsm");
// Export CSV file
workbook->easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv", "Sheet1");
// Create an instance of the class used to import/export Excel files
ExcelDocument workbook = new ExcelDocument();
// Import XLSM file
workbook.easy_LoadXLSXFile("C:\\Samples\\Excel.xlsm");
// Export CSV file
workbook.easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv", "Sheet1");
.NET:// Create an instance of the class used to import/export Excel files
$workbook = new COM("EasyXLS.ExcelDocument");
// Import XLSM file
$workbook->easy_LoadXLSXFile("C:\Samples\Excel.xlsm");
// Export CSV file
$workbook->easy_WriteCSVFile("C:\Samples\Excel to CSV.csv", "Sheet1");
Java:// Create an instance of the class used to import/export Excel files
$workbook = new java("EasyXLS.ExcelDocument");
// Import XLSM file
$workbook->easy_LoadXLSXFile("C:\Samples\Excel.xlsm");
// Export CSV file
$workbook->easy_WriteCSVFile("C:\Samples\Excel to CSV.csv", "Sheet1");
' Create an instance of the class used to import/export Excel filesset workbook = Server.CreateObject("EasyXLS.ExcelDocument")
' Import XLSM file
workbook.easy_LoadXLSXFile("C:\Samples\Excel.xlsm")
' Export CSV file
workbook.easy_WriteCSVFile("C:\Samples\Excel to CSV.csv", "Sheet1")
' Create an instance of the class used to import/export Excel filesSet workbook = CreateObject("EasyXLS.ExcelDocument")
' Import XLSM file
workbook.easy_LoadXLSXFile("C:\Samples\Excel.xlsm")
' Export CSV file
workbook.easy_WriteCSVFile("C:\Samples\Excel to CSV.csv", "Sheet1")
' Create an instance of the class used to import/export Excel filesset workbook = CreateObject("EasyXLS.ExcelDocument")
' Import XLSM file
workbook.easy_LoadXLSXFile("C:\Samples\Excel.xlsm")
' Export CSV file
workbook.easy_WriteCSVFile "C:\Samples\Excel to CSV.csv", "Sheet1"
<!-- Create an instance of the class used to import/export Excel files --><cfobject type="java"class="EasyXLS.ExcelDocument"name="workbook"action="CREATE"><!-- Import XLSM file --><cfset ret = workbook.easy_LoadXLSXFile("C:\Samples\Excel.xlsm")><!-- Export CSV file --><cfset ret = workbook.easy_WriteCSVFile("C:\Samples\Excel to CSV.csv", "Sheet1")>
.NET:# Create an instance of the class used to import/export Excel files
workbook = ExcelDocument()
# Import XLSM file
workbook.easy_LoadXLSXFile("C:\\Samples\\Excel.xlsm")
# Export CSV file
workbook.easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv", "Sheet1")
Java:# Create an instance of the class used to import/export Excel files
workbook = gateway.jvm.ExcelDocument()
# Import XLSM file
workbook.easy_LoadXLSXFile("C:\\Samples\\Excel.xlsm")
# Export CSV file
workbook.easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv", "Sheet1")
EasyXLS allows you to convert Excel XLSB file to CSV using ExcelDocument.easy_LoadXLSBFile method. The below code sample shows how to achieve this goal.
// Create an instance of the class used to import/export Excel files
ExcelDocument workbook = new ExcelDocument();
// Import XLSB file
workbook.easy_LoadXLSBFile("C:\\Samples\\Excel.xlsb");
// Export CSV file
workbook.easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv", "Sheet1");
' Create an instance of the class used to import/export Excel filesDim workbook As New ExcelDocument
' Import XLSB file
workbook.easy_LoadXLSBFile("C:\Samples\Excel.xlsb")
' Export CSV file
workbook.easy_WriteCSVFile("C:\Samples\Excel to CSV.csv", "Sheet1")
C++// 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 XLSB file
workbook->easy_LoadXLSBFile("C:\\Samples\\Excel.xlsb");
// Export CSV file
workbook->easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv", "Sheet1");
C++.NET// Create an instance of the class used to import/export Excel files
ExcelDocument ^workbook = gcnew ExcelDocument();
// Import XLSB file
workbook->easy_LoadXLSBFile("C:\\Samples\\Excel.xlsb");
// Export CSV file
workbook->easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv", "Sheet1");
// Create an instance of the class used to import/export Excel files
ExcelDocument workbook = new ExcelDocument();
// Import XLSB file
workbook.easy_LoadXLSBFile("C:\\Samples\\Excel.xlsb");
// Export CSV file
workbook.easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv", "Sheet1");
.NET:// Create an instance of the class used to import/export Excel files
$workbook = new COM("EasyXLS.ExcelDocument");
// Import XLSB file
$workbook->easy_LoadXLSBFile("C:\Samples\Excel.xlsb");
// Export CSV file
$workbook->easy_WriteCSVFile("C:\Samples\Excel to CSV.csv", "Sheet1");
Java:// Create an instance of the class used to import/export Excel files
$workbook = new java("EasyXLS.ExcelDocument");
// Import XLSB file
$workbook->easy_LoadXLSBFile("C:\Samples\Excel.xlsb");
// Export CSV file
$workbook->easy_WriteCSVFile("C:\Samples\Excel to CSV.csv", "Sheet1");
' Create an instance of the class used to import/export Excel filesset workbook = Server.CreateObject("EasyXLS.ExcelDocument")
' Import XLSB file
workbook.easy_LoadXLSBFile("C:\Samples\Excel.xlsb")
' Export CSV file
workbook.easy_WriteCSVFile "C:\Samples\Excel to CSV.csv", "Sheet1"
' Create an instance of the class used to import/export Excel filesSet workbook = CreateObject("EasyXLS.ExcelDocument")
' Import XLSB file
workbook.easy_LoadXLSBFile("C:\Samples\Excel.xlsb")
' Export CSV file
workbook.easy_WriteCSVFile "C:\Samples\Excel to CSV.csv", "Sheet1"
' Create an instance of the class used to import/export Excel filesset workbook = CreateObject("EasyXLS.ExcelDocument")
' Import XLSB file
workbook.easy_LoadXLSBFile("C:\Samples\Excel.xlsb")
' Export CSV file
workbook.easy_WriteCSVFile "C:\Samples\Excel to CSV.csv", "Sheet1"
<!-- Create an instance of the class used to import/export Excel files --><cfobject type="java"class="EasyXLS.ExcelDocument"name="workbook"action="CREATE"><!-- Import XLSB file --><cfset ret = workbook.easy_LoadXLSBFile("C:\Samples\Excel.xlsb")><!-- Export CSV file --><cfset ret = workbook.easy_WriteCSVFile("C:\Samples\Excel to CSV.csv", "Sheet1")>
.NET:# Create an instance of the class used to import/export Excel files
workbook = ExcelDocument()
# Import XLSB file
workbook.easy_LoadXLSBFile("C:\\Samples\\Excel.xlsb")
# Export CSV file
workbook.easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv", "Sheet1")
Java:# Create an instance of the class used to import/export Excel files
workbook = gateway.jvm.ExcelDocument()
# Import XLSB file
workbook.easy_LoadXLSBFile("C:\\Samples\\Excel.xlsb")
# Export CSV file
workbook.easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv", "Sheet1")
// Create an instance of the class used to import/export Excel files
ExcelDocument workbook = new ExcelDocument();
// Import XLS file
workbook.easy_LoadXLSFile("C:\\Samples\\Excel.xls");
// Export CSV file
workbook.easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv", "Sheet1");
' Create an instance of the class used to import/export Excel filesDim workbook As New ExcelDocument
' Import XLS file
workbook.easy_LoadXLSFile("C:\Samples\Excel.xls")
' Export CSV file
workbook.easy_WriteCSVFile("C:\Samples\Excel to CSV.csv", "Sheet1")
C++// 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 XLS file
workbook->easy_LoadXLSFile("C:\\Samples\\Excel.xls");
// Export CSV file
workbook->easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv", "Sheet1");
C++.NET// Create an instance of the class used to import/export Excel files
ExcelDocument ^workbook = gcnew ExcelDocument();
// Import XLS file
workbook->easy_LoadXLSFile("C:\\Samples\\Excel.xls");
// Export CSV file
workbook->easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv", "Sheet1");
// Create an instance of the class used to import/export Excel files
ExcelDocument workbook = new ExcelDocument();
// Import XLS file
workbook.easy_LoadXLSFile("C:\\Samples\\Excel.xls");
// Export CSV file
workbook.easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv", "Sheet1");
.NET:// Create an instance of the class used to import/export Excel files
$workbook = new COM("EasyXLS.ExcelDocument");
// Import XLS file
$workbook->easy_LoadXLSFile("C:\Samples\Excel.xls");
// Export CSV file
$workbook->easy_WriteCSVFile("C:\Samples\Excel to CSV.csv", "Sheet1");
Java:// Create an instance of the class used to import/export Excel files
$workbook = new java("EasyXLS.ExcelDocument");
// Import XLS file
$workbook->easy_LoadXLSFile("C:\Samples\Excel.xls");
// Export CSV file
$workbook->easy_WriteCSVFile("C:\Samples\Excel to CSV.csv", "Sheet1");
' Create an instance of the class used to import/export Excel filesset workbook = Server.CreateObject("EasyXLS.ExcelDocument")
' Import XLS file
workbook.easy_LoadXLSFile("C:\Samples\Excel.xls")
' Export CSV file
workbook.easy_WriteCSVFile("C:\Samples\Excel to CSV.csv", "Sheet1")
' Create an instance of the class used to import/export Excel filesSet workbook = CreateObject("EasyXLS.ExcelDocument")
' Import XLS file
workbook.easy_LoadXLSFile("C:\Samples\Excel.xls")
' Export CSV file
workbook.easy_WriteCSVFile "C:\Samples\Excel to CSV.csv", "Sheet1"
' Create an instance of the class used to import/export Excel filesset workbook = CreateObject("EasyXLS.ExcelDocument")
' Import XLS file
workbook.easy_LoadXLSFile("C:\Samples\Excel.xls")
' Export CSV file
workbook.easy_WriteCSVFile("C:\Samples\Excel to CSV.csv", "Sheet1")
<!-- Create an instance of the class used to import/export Excel files --><cfobject type="java"class="EasyXLS.ExcelDocument"name="workbook"action="CREATE"><!-- Import XLS file --><cfset ret = workbook.easy_LoadXLSFile("C:\Samples\Excel.xls")><!-- Export CSV file --><cfset ret = workbook.easy_WriteCSVFile("C:\Samples\Excel to CSV.csv", "Sheet1")>
.NET:# Create an instance of the class used to import/export Excel files
workbook = ExcelDocument()
# Import XLS file
workbook.easy_LoadXLSFile("C:\\Samples\\Excel.xls")
# Export CSV file
workbook.easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv", "Sheet1")
Java:# Create an instance of the class used to import/export Excel files
workbook = gateway.jvm.ExcelDocument()
# Import XLS file
workbook.easy_LoadXLSFile("C:\\Samples\\Excel.xls")
# Export CSV file
workbook.easy_WriteCSVFile("C:\\Samples\\Excel to CSV.csv", "Sheet1")