different format into one single line Interop.word
问题 I've been trying to figure out how to insert 2 different formats into the same paragraph using interop.word in c# like this: hello planet earth here's what I want to do 回答1: Assuming you have your document defined as oDoc, the following code should get you the desired result: Word.Paragraph oPara = oDoc.Content.Paragraphs.Add(ref oMissing); oPara.Range.Text = "hello planet earth here's what I want to do"; object oStart = oPara.Range.Start + 13; object oEnd = oPara.Range.Start + 18; Word.Range