This commit is contained in:
Looly
2019-09-09 21:58:13 +08:00
parent 7174b49906
commit 692397f313
5 changed files with 48 additions and 29 deletions

View File

@@ -483,6 +483,17 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
}
return this;
}
/**
* 设置默认行高,值为一个点的高度
*
* @param height 高度
* @return this
* @since 4.6.5
*/
public ExcelWriter setDefaultRowHeight(int height) {
return setRowHeight(-1, height);
}
/**
* 设置行高,值为一个点的高度

View File

@@ -75,7 +75,7 @@ public class ExcelWriteTest {
rows.add(ObjectUtil.clone(row1));
}
String filePath = "e:/writeTest.xlsx";
String filePath = "f:/test/writeTest.xlsx";
FileUtil.del(filePath);
// 通过工具类创建writer
ExcelWriter writer = ExcelUtil.getWriter(filePath);