.net - Save an excel file to a csv file in C# code -
i want open excel file , save csv file. google search no lucky. need c sharp code it.
thanks nice help.
if willing use excel interop:
excel.application app = new excel.application(); excel.workbook wb = app.workbooks.open(@"c:\temp\testtable.xlsx"); wb.saveas(@"c:\temp\output.csv", excel.xlfileformat.xlcsvwindows); wb.close(false); app.quit(); console.writeline("done!");
Comments
Post a Comment