How to get Excel Columns Range in Epplus and set its Column Width? -


example. how in epplus?

sheet.cells["a1:d1"].column.width = 10; 

in excel interop:

sheet.get_range("a1", "d1").columnwidth = 10; 

and start in specific column. not using ws.cells[range]

 int startcolumn = 3; int endcolumn = 10;  (int = startcolumn; <= endcolumn; a++)     {        sheet.column(a).width = 10;     } 

Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -