POI中的单元格合并


CellRangeAddress cellrange = new CellRangeAddress(firstRow, lastRow, firshCol, lastCol);
sheet.addMergeRegion(cellrange);
参数说明: 从0开始
int firstRow: 起始行号

int lastRow: 终止行号

int firstCol: 起始列号

int lastCol: 终止列号


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM