Posted By

engebaja on 05/08/13


csv excel convert xls c#

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Convert Excel file (XLS) to CSV

 / Published in: C#


Convert Excel file (XLS) to CSV

Report this snippet  


RSS Icon Subscribe to comments
Posted By: shameen on September 13, 2013

I use this tool: to convert my excel files to csv and vice versa and this tool also convert excel files to many other formats.

Posted By: Sharma23 on December 5, 2014

Thanks for the sample code. Here I'd like to provide you another solution on this issue, try following code snippet:

using Spire.Xls; namespace xls2csv { class Program { static void Main(string[] args) { Workbook workbook = new Workbook(); workbook.LoadFromFile(@"..\ExceltoCSV.xls"); Worksheet sheet = workbook.Worksheets[0]; sheet.SaveToFile("sample.csv", ",", Encoding.UTF8); } } }

You need to login to post a comment.