Adding border to a merged region in POI XSSF workbook

后端 未结 4 965
醉话见心
醉话见心 2021-02-05 21:11

I\'m using apache poi 3.7 and I need to put border to a range of cells or merged region.

how can I to apply border to a merged region when the sheet and workbook type is

4条回答
  •  遥遥无期
    2021-02-05 21:37

    private void setBordersToMergedCells(XSSFWorkbook workBook, XSSFSheet sheet) {
            int numMerged = sheet.getNumMergedRegions();
    
        for(int i= 0; i

提交回复
热议问题