如何提取Word文档的范围(25,45),添加到其他Word文档中?

问题描述:


我要提取"doc1"的Range(25,45),并添加到"doc2",不要使用剪贴板.

如果我在运行软件时使用剪贴板,则该软件将失败.


I want extract Range(25,45) of "doc1",and add to "doc2",don''t use clipboard.

if I use clipboard when the software is running,this software will fail.

Application app=new Application();
Document doc1,doc2;
doc1=app.Documents.Open(...);
doc2=app.Documents.Open(...);
doc1.Activate();
object start=25,end=45;
doc1.Range(ref start, ref end).Copy();
doc2.Activate();
start=1;
doc2.Range(ref start, ref start).Paste();

请参见 ^ ].