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

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -