Преглед на файлове

表头层级为三级的时候,第三层表头的前部的数据被置空

4.1.3.A
哲韬 преди 5 години
родител
ревизия
7427f9eeaf
променени са 1 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. +6
    -2
      easypoi-base/src/main/java/cn/afterturn/easypoi/excel/export/ExcelExportService.java

+ 6
- 2
easypoi-base/src/main/java/cn/afterturn/easypoi/excel/export/ExcelExportService.java Целия файл

@@ -74,8 +74,12 @@ public class ExcelExportService extends BaseExportService {
row.setHeight(title.getHeaderHeight());
Row listRow = null;
if (rows >= 2) {
listRow = sheet.createRow(index + 1);
listRow.setHeight(title.getHeaderHeight());
listRow = sheet.getRow(index + 1);
if (listRow == null) {
listRow = sheet.createRow(index + 1);
listRow.setHeight(title.getHeaderHeight());

}
}
int groupCellLength = 0;
CellStyle titleStyle = getExcelExportStyler().getTitleStyle(title.getColor());


Зареждане…
Отказ
Запис