c# - Transfer data from mutiple csv to single excel workbook -
i have 3 csv files , want import data respectively excel data transferred 3 sheets (sheet1, sheet2, sheet3) in single workbook using c#.net. appreciated.
excel.application xl = new excel.application; excel.workbook wb = new excel.workbook; excel.worksheet ws1 = new excel.worksheet; excel.worksheet ws2 = new excel.worksheet; excel.worksheet ws3 = new excel.worksheet; string csv1 = @"c:\ss1.csv"; string csv2 = @"c:\ss2.csv"; string csv3 = @"c:\ss3.csv"; wb=xl.workbooks.open(csv1);
i'm stuck here.how access other 2 csv files.
if understand question need add rest of csv files sheets
opened tab main csv file.
so should code on wb
object add sheets it.
Comments
Post a Comment