xzc пре 1 недеља
родитељ
комит
7a46d75200

+ 4 - 0
src/main/java/com/grapecity/controller/GrapeCityController.java

@@ -493,6 +493,10 @@ public class GrapeCityController {
             for (int c = 0; c < worksheet.getColumnCount(); c++) {
                 IRange cell = worksheet.getRange(r, c);
                 if (!(cell.getCellType() instanceof CheckBoxCellType cbType)) {
+                    if(cell.getCellType() instanceof ComboBoxCellType){
+                        cell.setCellType(null);
+                        cell.setValue(cell.getValue());
+                    }
                     continue;
                 }
                 // 读取复选框状态和显示文字

+ 4 - 0
src/main/java/com/grapecity/controller/PdfController.java

@@ -132,6 +132,10 @@ public class PdfController {
             for (int c = 0; c < usedRange.getColumnCount(); c++) {
                 IRange cell = worksheet.getRange(r, c);
                 if (!(cell.getCellType() instanceof CheckBoxCellType cbType)) {
+                    if(cell.getCellType() instanceof ComboBoxCellType){
+                        cell.setCellType(null);
+                        cell.setValue(cell.getValue());
+                    }
                     continue;
                 }
                 Object val = cell.getValue();