c# - Copy excel rows programatically with column widths -
hope can help. have excel workbook , in have several sheets.
what want row 1 sheet named "sheet1" , paste several other sheets (not all). also, want maintain column widths of row 1 sheet 1 while copying, important.
i mention several other sheets because exclude sheets, planning store in list.
microsoft.office.interop.excel.application xlapp = null; excel.workbook xlworkbook = null; excel.sheets xlsheets = null; excel.worksheet xlnewsheet = null;
any ideas how can done in c#?
thanks in advance.
maintaining width of column or row difficult do. in opinion: first copy data, read width values of old columns , apply them new columns. other solutions have seen rely on pastespecial , not work.
Comments
Post a Comment