您好,目前问题已经调查清楚,计划会在下个小版本4.2.2修复,修复后我会在帖子中更新
目前临时的解决方案:
行分组
- Workbook workbook = new Workbook();
- var worksheet = workbook.ActiveSheet;
- worksheet.Range["6:28"].Group();
- worksheet.Range["7:20"].Group();
- workbook.Save("e:\\test.xlsx");
复制代码
列分组
- Workbook workbook = new Workbook();
- var worksheet = workbook.ActiveSheet;
- worksheet.Range["B:M"].Group();
- worksheet.Range["D:I"].Group();
- workbook.Save("e:\\test.xlsx");
复制代码
实际上就是在分组时避免交叉,因为最终分组结果也是无法重叠的。 |