This commit is contained in:
2024-05-16 17:03:14 +08:00
6 changed files with 8 additions and 47 deletions
@@ -177,7 +177,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
//序号
value = " " + value;
}
p.ParagraphFormat.Alignment = ParagraphAlignment.Center;
p.ParagraphFormat.Alignment = ParagraphAlignment.Center;//表格中字体居中
p.AppendChild(new Run(doc, value));
@@ -185,6 +185,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
cell.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;
cell.CellFormat.Borders.LineWidth = 1;
cell.AppendChild(p);
return cell;
}
@@ -338,6 +340,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
Row row = new Row(doc);
row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width,"","1"));
row.Cells.Add(CreateCell(item.ProStage, doc, table.FirstRow.Cells[1].CellFormat.Width));
row.Cells.Add(CreateCell(item.ProDescribe, doc, table.FirstRow.Cells[2].CellFormat.Width));
row.Cells.Add(CreateCell(item.TargetValue, doc, table.FirstRow.Cells[3].CellFormat.Width));
row.Cells.Add(CreateCell(item.MonthPer, doc, table.FirstRow.Cells[4].CellFormat.Width));