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:

xlsx error

how can rid of error?

thanks in advance!

have tried worksheet.column(i).width = 45; ?


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -