excel - C# Add In : export in txt with separator -
i create add in excel in c# export excel file (.xls or . xlsx) in .txt separator "|" between columns , rows.
i create method select active worksheet , save file in .txt file
private void completecolumn_startup(object sender, system.eventargs e) { excel._worksheet currworksheet = globals.completecolumn.application.worksheets[1]; currworksheet.select(); string path = system.io.path.getdirectoryname(process.getcurrentprocess().mainmodule.filename); globals.completecolumn.application.workbooks[1].saveas(path, excel.xlfileformat.xltextwindows); }
but don't know how can insert pipe between each columns.
could me please ?
thanks !
Comments
Post a Comment