Total Pageviews

2019/09/13

[Apache POI] How to set merge cell in Apache POI ?

Problem
I would like to merge A4 and B4 


How-To
According to Apache POI quick guide, we can use addMergedRegion to fulfill this requirement:

Code snippet:



Reference
[1] http://poi.apache.org/components/spreadsheet/quick-guide.html

No comments: