diff --git a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar index 5c2999c5..f6951ee8 100644 Binary files a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar and b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar differ diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/output/util/OutputWordUtil.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/output/util/OutputWordUtil.java index 1a9de8a3..26c6e057 100755 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/output/util/OutputWordUtil.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/output/util/OutputWordUtil.java @@ -417,7 +417,7 @@ public class OutputWordUtil { TextRange tr2 = paragraph2.appendText("修订记录"); tr2.getCharacterFormat().setBold(true); tr2.getCharacterFormat().setFontName("宋体"); - tr2.getCharacterFormat().setFontSize(10.5f); + tr2.getCharacterFormat().setFontSize(12f); paragraph2.applyStyle(BuiltinStyle.Body_Text); //应用标题1样式 @@ -475,7 +475,8 @@ public class OutputWordUtil { TextRange txtRange = p.appendText(header[i]); txtRange.getCharacterFormat().setBold(true); - //txtRange.getCharacterFormat().setFontSize(); + txtRange.getCharacterFormat().setFontName("宋体"); + txtRange.getCharacterFormat().setFontSize(10.5f); } @@ -487,7 +488,7 @@ public class OutputWordUtil { TableRow dataRow = table.getRows().get(r + 1); dataRow.setHeight(25); - dataRow.setHeightType(TableRowHeightType.Exactly); + dataRow.setHeightType(TableRowHeightType.Auto); dataRow.getRowFormat().setBackColor(Color.white); for (int c = 0; c < data[r].length; c++) { @@ -759,7 +760,8 @@ public class OutputWordUtil { p.getFormat().setHorizontalAlignment(Center); TextRange txtRange = p.appendText(header[i]); txtRange.getCharacterFormat().setBold(true); - + txtRange.getCharacterFormat().setFontName("宋体"); + txtRange.getCharacterFormat().setFontSize(10.5f); } @@ -875,6 +877,8 @@ public class OutputWordUtil { p.getFormat().setHorizontalAlignment(Center); TextRange txtRange = p.appendText(header[i]); txtRange.getCharacterFormat().setBold(true); + txtRange.getCharacterFormat().setFontName("宋体"); + txtRange.getCharacterFormat().setFontSize(10.5f); } @@ -967,6 +971,8 @@ public class OutputWordUtil { p.getFormat().setHorizontalAlignment(Center); TextRange txtRange = p.appendText(header[i]); txtRange.getCharacterFormat().setBold(true); + txtRange.getCharacterFormat().setFontName("宋体"); + txtRange.getCharacterFormat().setFontSize(10.5f); } //将数据添加到其余行