修订记录左对齐代码提交

This commit is contained in:
yujh_java 2025-07-23 14:50:20 +08:00
parent e1fc03901f
commit b35860647a

View File

@ -666,7 +666,11 @@ 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
p.getFormat().setHorizontalAlignment(Center);
if(j==7 && i !=0){
p.getFormat().setHorizontalAlignment(Left);
}else{
p.getFormat().setHorizontalAlignment(Center);
}
}
}
}