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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -