diff --git a/newfiber-common/newfiber-common-core/src/main/java/com/newfiber/common/core/utils/poi/ExcelUtil.java b/newfiber-common/newfiber-common-core/src/main/java/com/newfiber/common/core/utils/poi/ExcelUtil.java index 7117f39..ef64ba8 100644 --- a/newfiber-common/newfiber-common-core/src/main/java/com/newfiber/common/core/utils/poi/ExcelUtil.java +++ b/newfiber-common/newfiber-common-core/src/main/java/com/newfiber/common/core/utils/poi/ExcelUtil.java @@ -730,7 +730,7 @@ } } else if (ColumnType.IMAGE == attr.cellType()){ - ClientAnchor anchor = new XSSFClientAnchor(0, 0, 0, 0, (short) cell.getColumnIndex(), cell.getRow().getRowNum(), (short) (cell.getColumnIndex() + 1), cell.getRow().getRowNum() + 1); + ClientAnchor anchor = new XSSFClientAnchor(10000, 10000, 0, 0, (short) cell.getColumnIndex(), cell.getRow().getRowNum(), (short) (cell.getColumnIndex() + 1), cell.getRow().getRowNum() + 1); String imagePath = Convert.toStr(value); if (StringUtils.isNotEmpty(imagePath)){ byte[] data = ImageUtils.getImage(imagePath); @@ -1135,7 +1135,7 @@ Excel excel = (Excel) os[1]; maxHeight = Math.max(maxHeight, excel.height()); } - return (short) (maxHeight * 20); + return (short) (maxHeight * 60); } /**