Free Support Forum - aspose.com

Converting .xls to csv file?

Is there a sample c# code how to convert excel file to csv file format?

I looked everywhere on the site.

I can do it manually but I want to automate it.

thanks

It's very easy: http://www.aspose.com/wiki/default.aspx/Aspose.Cells/SavingFile.html .

Workbook wb = new Workbook();

wb.Open("c:\\book1.xls"); //opens an xls file

wb.Save("c:\\book1.csv", FileFormatType.CSV); //saves it as a csv file