Commit ff8a20477717e5c78c6da99d21b6104eb6aa0822
1 parent
4900e81171
Exists in
master
and in
6 other branches
唐山滦县产妇健康管理登记表
Showing 1 changed file with 1 additions and 0 deletions
platform-common/src/main/java/com/lyms/platform/common/utils/ExcelUtil.java
View file @
ff8a204
... | ... | @@ -419,6 +419,7 @@ |
419 | 419 | */ |
420 | 420 | WritableFont wf = new WritableFont(WritableFont.ARIAL, 12, WritableFont.BOLD, false, UnderlineStyle.NO_UNDERLINE, Colour.BLACK); |
421 | 421 | WritableCellFormat wcf = new WritableCellFormat(wf); |
422 | + wcf.setAlignment(jxl.format.Alignment.CENTRE);//水平居中 | |
422 | 423 | ws.setRowView(0, 300); // 设置指定行高 |
423 | 424 | // 设置列宽 |
424 | 425 | for (int j = 0; j < 15; j++) |