WebMerged region A1 must contain 2 or more cells错误. 今天在做导出excel时发现此处错误,错误内容大概是单元格合并的问题,意思是合并区域A1必须包含2个或更多单元格,如下 … Web15 feb. 2024 · I'm using Apache POI 3.17 and in my code i need to merge new cell with existing merged region sheet.addMergedRegion (new CellRangeAddress (1,3,1,1)); sheet.addMergedRegion (new CellRangeAddress (1,4,1,1)); Here i created merged region start from row 1 to 3 with column number 1 , then i need to merge new row to be from 1 …
apache poi 高版本 3.17后合并单元格的问题 - CSDN博客
Web18 feb. 2024 · 解决方法: 合并单元格需注意假如某个单元格不需要合并则就不需要往List集合中塞,列如诸如以下数据 [2, 2, 1, 1]就是错误数据, 因为它代表一个单元格B3。 B3并不需要合并,而假如执意要合并的话则该sheet.addMergedRegion (new CellRangeAddress (2, 2,1, 1));方法会报错。 则将合并 2,2,1,1 去掉就不报错了。 … Web23 dec. 2016 · java.lang.IllegalArgumentException: Merged region D8 must contain 2 or more cells at org.apache.poi.xssf.usermodel.XSSFSheet.addMergedRegion(XSSFSheet.java:344) … shsl detective
Merged region B8 must contain 2 or more cells - Programmer …
WebMerged region B8 must contain 2 or more cells 字面意思是B8合并的单元格至少需要合并2个以上的单元格。 cellRangeAddress = new CellRangeAddress (firstRow, lastRow, … Web18 jul. 2024 · 1 Answer Sorted by: 0 You have to analyze your sheet and identify the first cell and the last one of the area you want to merge. Then you have to merge all those cells in one shot. For example: Webjava.lang.IllegalArgumentException: Merged region B4 must contain 2 or more cells 同样,如果控制不好,还会出现如下错误: java.lang.IllegalStateException: Cannot add merged region B5:B6 to sheet because it overlaps with an existing merged region (B4:B5). theory taiwan