|
c#操作word表格(5) ////****************** wordDoc.Tables.Item(1).Cell(2, 1).Range.Text = "cell21"; //wordDoc.Tables.Item(k).Cell(2, 2).Range.Text = DT.Rows[i]["cell21"].ToString();
////****************** wordDoc.Tables.Item(1).Cell(2, 3).Range.Text = "cell23"; //wordDoc.Tables.Item(k).Cell(2, 4).Range.Text = DT.Rows[i]["cell23"].ToString();
#endregion
#region 第三行显示 wordDoc.Tables.Item(1).Cell(3,2).Merge(wordDoc.Tables.Item(1).Cell(3,3)); wordDoc.Tables.Item(1).Cell(3,2).Merge(wordDoc.Tables.Item(1).Cell(3,3));
////****************** wordDoc.Tables.Item(1).Cell(3, 1).Range.Text = "cell31";
////****************** wordDoc.Tables.Item(1).Cell(3, 3).Range.Text = "cell33";
#endregion
#region 第五行显示 wordDoc.Tables.Item(1).Cell(5,2).Merge(wordDoc.Tables.Item(1).Cell(5,3)); wordDoc.Tables.Item(1).Cell(5,2).Merge(wordDoc.Tables.Item(1).Cell(5,3)); wordDoc.Tables.Item(1).Cell(5,2).Merge(wordDoc.Tables.Item(1).Cell(5,3)); wordDoc.Tables.Item(1).Cell(5,2).Merge(wordDoc.Tables.Item(1).Cell(5,3)); #endregion
#region 第四行显示
////****************** wordDoc.Tables.Item(1).Cell(4, 1).Range.Text = "cell41";
////******************
|