add setFreezePane

This commit is contained in:
Looly
2020-03-30 10:38:15 +08:00
parent 3eaf4702f5
commit 2783f17472
3 changed files with 48 additions and 0 deletions

View File

@@ -90,6 +90,8 @@ public class ExcelWriteTest {
// 一次性写出内容,使用默认样式
writer.write(rows);
writer.autoSizeColumn(0, true);
//冻结前两行
writer.setFreezePane(0, 2);
// 关闭writer释放内存
writer.close();
}