java - Creating a header with two line in excel file with apache POI -


how can header java code apache poi?

my excel file

usually merging 2 cells "projets" items.

see https://poi.apache.org/spreadsheet/quick-guide.html#mergedcells

basically define merged areas calls this

sheet.addmergedregion(new cellrangeaddress(         0, //first row (0-based)         0, //last row  (0-based)         0, //first column (0-based)         1  //last column  (0-based) )); 

see setting value cells after merging in poi , merging cells in excel using apache poi more discussion around this.


Comments

Popular posts from this blog

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -