Microsoft.Office.Interop.Word.Application oWord = new Microsoft.Office.Interop.Word.Application();
oWord.Visible = true;
// Microsoft.Office.Interop.Word.Document oDoc1 = oWord.Documents.Add();
Microsoft.Office.Interop.Word.Document oDocDest = oWord.Documents.Open(@"E:\Docx\temp4.docx");
Microsoft.Office.Interop.Word.Document oDocSour = oWord.Documents.Open(@"E:\Docx\q3.docx");
Microsoft.Office.Interop.Word.Range oRangeSrc = oDocSour.Content;
oRangeSrc.Copy();
if (oDocDest.Paragraphs.Count > 0)
{
object docStart = oDocDest.Paragraphs.Count;
object docEnd = oDocDest.Paragraphs.Count + 1;
Microsoft.Office.Interop.Word.Range oRangeDst = oDocDest.Range(ref docStart, ref docEnd);
oRangeDst.PasteSpecial(DataType: Microsoft.Office.Interop.Word.WdPasteOptions.wdKeepSourceFormatting);
}
内容应粘贴在任何段落或内容之后(如果存在)