|
c#操作word表格(6) wordDoc.Tables.Item(1).Cell(4, 3).Range.Text = "cell43";
////****************** wordDoc.Tables.Item(1).Cell(4, 5).Range.Text = "cell45"; #endregion
#region 第六行显示 wordDoc.Tables.Item(1).Cell(6,2).Merge(wordDoc.Tables.Item(1).Cell(6,3)); wordDoc.Tables.Item(1).Cell(6,2).Merge(wordDoc.Tables.Item(1).Cell(6,3)); wordDoc.Tables.Item(1).Cell(6,2).Merge(wordDoc.Tables.Item(1).Cell(6,3)); wordDoc.Tables.Item(1).Cell(6,2).Merge(wordDoc.Tables.Item(1).Cell(6,3));
////****************** wordDoc.Tables.Item(1).Cell(5, 1).Range.Text = "cell51"; wordDoc.Tables.Item(1).Cell(5, 2).Range.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft;
////****************** wordDoc.Tables.Item(1).Cell(6, 1).Range.Text = "cdll61"; wordDoc.Tables.Item(1).Cell(6, 2).Range.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft; #endregion
#region 第七行显示 wordDoc.Tables.Item(1).Cell(7,2).Merge(wordDoc.Tables.Item(1).Cell(7,3)); wordDoc.Tables.Item(1).Cell(7,2).Merge(wordDoc.Tables.Item(1).Cell(7,3)); wordDoc.Tables.Item(1).Cell(7,2).Merge(wordDoc.Tables.Item(1).Cell(7,3)); wordDoc.Tables.Item(1).Cell(7,2).Merge(wordDoc.Tables.Item(1).Cell(7,3));
////****************** wordDoc.Tables.Item(1).Cell(7, 1).Range.Text = "cell71";
|