修改修订记录字体为宋体
This commit is contained in:
parent
a39f097687
commit
7f35386693
BIN
com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar
Normal file
BIN
com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar
Normal file
Binary file not shown.
@ -386,6 +386,7 @@ public class OutputWordUtil {
|
||||
for (int z= 0; z < rows.getCells().get(j).getParagraphs().getCount();z++){
|
||||
Paragraph p = rows.getCells().get(j).getParagraphs().get(z);
|
||||
p.getFormat().setLineSpacing(12f);//设置边距为1.0
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -458,7 +459,7 @@ public class OutputWordUtil {
|
||||
}else if(i==5){
|
||||
row.getCells().get(5).setWidth(60);
|
||||
}else if(i==6){
|
||||
row.getCells().get(6).setWidth(60);
|
||||
row.getCells().get(6).setWidth(50);
|
||||
}else if(i==7){
|
||||
row.getCells().get(7).setWidth(80);
|
||||
}
|
||||
@ -467,12 +468,10 @@ public class OutputWordUtil {
|
||||
p.getFormat().setHorizontalAlignment(Center);
|
||||
TextRange txtRange = p.appendText(header[i]);
|
||||
|
||||
|
||||
p.getFormat().setLineSpacing(12f);
|
||||
//txtRange.getCharacterFormat().setFontName("宋体"); // 设置字体名称
|
||||
|
||||
txtRange.getCharacterFormat().setBold(true);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -482,13 +481,10 @@ public class OutputWordUtil {
|
||||
for (int r = 0; r < data.length; r++) {
|
||||
TableRow dataRow = table.getRows().get(r + 1);
|
||||
|
||||
|
||||
dataRow.setHeight(25);
|
||||
dataRow.setHeightType(TableRowHeightType.Auto);
|
||||
dataRow.getRowFormat().setBackColor(Color.white);
|
||||
|
||||
|
||||
|
||||
for (int c = 0; c < data[r].length; c++) {
|
||||
dataRow.getCells().get(c).getCellFormat().setVerticalAlignment(VerticalAlignment.Middle);
|
||||
//设置固定列宽
|
||||
@ -505,12 +501,15 @@ public class OutputWordUtil {
|
||||
}else if(c==5){
|
||||
dataRow.getCells().get(5).setWidth(60);
|
||||
}else if(c==6){
|
||||
dataRow.getCells().get(6).setWidth(60);
|
||||
dataRow.getCells().get(6).setWidth(50);
|
||||
}else if(c==7){
|
||||
dataRow.getCells().get(7).setWidth(80);
|
||||
}
|
||||
|
||||
dataRow.getCells().get(c).addParagraph().appendText(data[r][c]);
|
||||
//dataRow.getCells().get(c).addParagraph().appendText(data[r][c]);
|
||||
|
||||
TextRange text =dataRow.getCells().get(c).addParagraph().appendText(data[r][c]);
|
||||
text.getCharacterFormat().setFontName("宋体");
|
||||
}
|
||||
}
|
||||
|
||||
@ -765,7 +764,10 @@ public class OutputWordUtil {
|
||||
//设置固定列宽
|
||||
dataRow.getCells().get(0).setWidth(150);
|
||||
dataRow.getCells().get(1).setWidth(500);
|
||||
dataRow.getCells().get(c).addParagraph().appendText(data[r][c]);
|
||||
//dataRow.getCells().get(c).addParagraph().appendText(data[r][c]);
|
||||
|
||||
TextRange text =dataRow.getCells().get(c).addParagraph().appendText(data[r][c]);
|
||||
text.getCharacterFormat().setFontName("宋体");
|
||||
|
||||
}
|
||||
}
|
||||
@ -874,7 +876,9 @@ public class OutputWordUtil {
|
||||
//设置固定列宽
|
||||
dataRow.getCells().get(0).setWidth(150);
|
||||
dataRow.getCells().get(1).setWidth(500);
|
||||
dataRow.getCells().get(c).addParagraph().appendText(data[r][c]);
|
||||
//dataRow.getCells().get(c).addParagraph().appendText(data[r][c]);
|
||||
TextRange text =dataRow.getCells().get(c).addParagraph().appendText(data[r][c]);
|
||||
text.getCharacterFormat().setFontName("宋体");
|
||||
|
||||
}
|
||||
}
|
||||
@ -961,7 +965,9 @@ public class OutputWordUtil {
|
||||
//设置固定列宽
|
||||
dataRow.getCells().get(0).setWidth(150);
|
||||
dataRow.getCells().get(1).setWidth(500);
|
||||
dataRow.getCells().get(c).addParagraph().appendText(data[r][c]);
|
||||
//dataRow.getCells().get(c).addParagraph().appendText(data[r][c]);
|
||||
TextRange text =dataRow.getCells().get(c).addParagraph().appendText(data[r][c]);
|
||||
text.getCharacterFormat().setFontName("宋体");
|
||||
}
|
||||
}
|
||||
Paragraph paragraph_blank = section.addParagraph();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user