例如:
通过用delphi调用word模板的方式打开了word文档:文档1、文档2、文档3如何能将这3个文档合并成一个word文档??

解决方案 »

  1.   

    请参考:var
      MSWord2000: OLEVariant;
      //打开Word2000;
      try
        MSWord2000 := GetActiveOleObject('Word.Application');
      except
        try
          MSWord2000 := CreateOleObject('Word.Application');
        except
          Exit;
        end;
      end;
      MSWord2000.Visible := True;
      //创建空文档;
      MSWord2000.Documents.Add();
        
      filename:='c:\a.doc';
      MSWord2000.Selection.InsertFile(filename);  //filename为要加入文件的全路径名,是字符型
      

  2.   

    ezlz(猫嘴里的猪) 说得有道理