修订记录左对齐代码提交

This commit is contained in:
yujh_java 2025-07-23 09:57:36 +08:00
parent dde2f7df96
commit f67cd46f23

View File

@ -670,7 +670,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);
}
}
}
}