From a648ba62c182faa248b4fcaf38d27d12d6cff64c Mon Sep 17 00:00:00 2001 From: zhaol <15900249928@163.com> Date: Thu, 22 May 2025 17:39:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E7=9B=B8=E5=85=B3=E5=A4=96?= =?UTF-8?q?=E9=83=A8=E6=96=87=E4=BB=B6=E8=A1=A8=E5=A4=B4=E8=A1=8C=E9=AB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pal/pal/output/util/OutputWordUtil.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 c4c64761..9aef41e1 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 @@ -603,7 +603,7 @@ public class OutputWordUtil { TableRow row = table.getRows().get(0); row.isHeader(true); row.setHeightType(TableRowHeightType.Exactly); - row.setHeight(25); + row.setHeight(20); table.setPreferredWidth(new PreferredWidth(WidthType.Twip, (short) 8335f)); float[] columnWidths = {10f,17f,13f,17f,13f,13f,13f,25f}; @@ -633,7 +633,7 @@ public class OutputWordUtil { for (int r = 0; r < data.length; r++) { TableRow dataRow = table.getRows().get(r + 1); - dataRow.setHeight(25); + dataRow.setHeight(20); dataRow.setHeightType(TableRowHeightType.Auto); dataRow.getRowFormat().setBackColor(Color.white); @@ -1053,8 +1053,8 @@ public class OutputWordUtil { TableRow row = table.getRows().get(0); row.isHeader(true); - //row.setHeight(20); - row.setHeightType(TableRowHeightType.Auto); + row.setHeight(20); + row.setHeightType(TableRowHeightType.Exactly); for (int i = 0; i < header.length; i++) { row.getCells().get(i).getCellFormat().setVerticalAlignment(VerticalAlignment.Middle); Paragraph p = row.getCells().get(i).addParagraph(); @@ -1076,7 +1076,7 @@ public class OutputWordUtil { //将数据添加到其余行 for (int r = 0; r < data.length; r++) { TableRow dataRow = table.getRows().get(r + 1); - //dataRow.setHeight(25); + dataRow.setHeight(20); //dataRow.setHeightType(TableRowHeightType.Auto); dataRow.getRowFormat().setBackColor(Color.white); for (int c = 0; c < data[r].length; c++) { @@ -1191,8 +1191,8 @@ public class OutputWordUtil { TableRow row = table.getRows().get(0); row.isHeader(true); - //row.setHeight(20); - row.setHeightType(TableRowHeightType.Auto); + row.setHeight(20); + row.setHeightType(TableRowHeightType.Exactly); for (int i = 0; i < header.length; i++) { row.getCells().get(i).getCellFormat().setVerticalAlignment(VerticalAlignment.Middle); Paragraph p = row.getCells().get(i).addParagraph(); @@ -1216,7 +1216,7 @@ public class OutputWordUtil { //将数据添加到其余行 for (int r = 0; r < data.length; r++) { TableRow dataRow = table.getRows().get(r + 1); - //dataRow.setHeight(25); + dataRow.setHeight(20); //dataRow.setHeightType(TableRowHeightType.Auto); dataRow.getRowFormat().setBackColor(Color.white); for (int c = 0; c < data[r].length; c++) { @@ -1339,7 +1339,7 @@ public class OutputWordUtil { table.autoFit(AutoFitBehaviorType.Auto_Fit_To_Window); TableRow row = table.getRows().get(0); row.isHeader(true); - //row.setHeight(20); + row.setHeight(20); row.setHeightType(TableRowHeightType.Exactly); @@ -1370,7 +1370,7 @@ public class OutputWordUtil { //将数据添加到其余行 for (int r = 0; r < data.length; r++) { TableRow dataRow = table.getRows().get(r + 1); - //dataRow.setHeight(25); + dataRow.setHeight(20); //dataRow.setHeightType(TableRowHeightType.Exactly); for (int c = 0; c < data[r].length; c++) { TableCell cell = dataRow.getCells().get(c);