I tried to convert my excel file into csv file format.
I wrote code like this:
Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Application();
Microsoft.Office.Interop.Excel.Workbook wb = app.Workbooks.Open(@"Tabelle1.xls");
wb.SaveAs(@"\\Desktop\output.csv", Microsoft.Office.Interop.Excel.XlFileFormat.xlCSVWindows);
My problem now is that the output file should be in unicode format.
if i write code like this: It works fine as it is unicode format. But the file is not in csv format.
wb.SaveAs(@"\\Desktop\output.csv", Microsoft.Office.Interop.Excel.XlFileFormat.xlUnicodeText);
Thanks
Darma
My problem now is that the output file should be in unicode format.
if i write code like this: It works fine as it is unicode format. But the file is not in csv format.
wb.SaveAs(@"\\Desktop\output.csv", Microsoft.Office.Interop.Excel.XlFileFormat.xlUnicodeText);
Thanks
Darma
VulpesPosted Mar 15, 2013, 6:42 AM
VulpesPosted Mar 15, 2013, 12:59 PM
However, if you don't mind installing Excel add-ins, you could try the solution in this link instead:
http://jaimonmathew.wordpress.com/2011/08/23/excel_addin_to_work_with_unicode_csv/
darma tejaPosted Mar 15, 2013, 7:29 AM
Thanks for your reply.
I tried like this before. I thought there is some solution with out replacing tabs.
Thanks
Darma