C# 处理word的一些方法
Word.Paragraph oPara3; oRng = oDoc.Bookmarks.get_Item(ref oEndOfDoc).Range; oPara3 = oDoc.Content.Paragraphs.Add(ref oRng); oPara3.Range.Text = "This is a sentence of normal text. Now here is a table:"; oPara3.Range.Font.Bold = 0; oPara3.Format.SpaceAfter = 24; oPara3.Range.InsertParagraphAfter(); string text = "zhangruichao "; WdColor textcolor = fontcolor; float textsize = 12; AddLine.AddSimpLine(oDoc, oEndOfDoc, oRng, text, textcolor, textsize);
对python应该有所借鉴