c# - Change width and height of column using ExcelPackage -
i'm writing code nopcommerce webshop, needs export excel sheet.
i'm trying edit width of columns, text fit in. tried following code(for 26 columns):
//adjust excel column width (int = 0; < 26; i++) { worksheet.column(i, 1).width = 45; }
the code executes , width of columns 45, works. gives me following error @ start up:
how can rid of error?
thanks in advance!
have tried worksheet.column(i).width = 45;
?
Comments
Post a Comment