EAS BOS 行融合、列融合

//获取融合管理器
//调用mergeBlock方法
//传入需要融合的开始行,开始列,结束行,结束列,融合方式

//同列的多行融合
KDTMergeManager merge = kdtEntry.getMergeManager();//融合管理器
int col = kdtEntry.getColumnIndex("area");
merge.mergeBlock(startRow, col, endRow, col, KDTMergeManager.FREE_ROW_MERGE);

//同行的多列融合
int rowIndex = row.getRowIndex();
merge.mergeBlock(rowIndex, startCol, rowIndex, endCol, KDTMergeManager.FREE_COLUMN_MERGE);

//合计行的多列融合
FootManager footMnaager = kdtEntry.getFootManager();
KDTMergeManager footMerge = kdtEntry.getMergeManager()footManager.getMergeManager();
int rowIndex = footManager.getFootRow(0).getRowIndex();
merge.mergeBlock(rowIndex, startCol, rowIndex, endCol, KDTMergeManager.FREE_COLUMN_MERGE);

猜你喜欢

转载自blog.csdn.net/qq_25170493/article/details/83068664