Document doc = new Document(reportFile);
DocumentBuilder builder = new DocumentBuilder(doc);
foreach (Bookmark bm in doc.Range.Bookmarks)
{
builder.MoveToBookmark(bm.Name);
if(bm.Name == "Freq_rs")
{
builder.StartTable();
builder.InsertCell();
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
builder.Write("阶次");
builder.InsertCell();
builder.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
builder.Write("频率(Hz)");
builder.EndRow();
}
doc.Range.Bookmarks.Remove(bm);
}