谢谢各位在http://expert.csdn.net/Expert/topic/1968/1968685.xml?temp=.9848749中的回答,帖子已经结了不过现在有个小问题
我用
word_sj.documents.item(1).Range.InsertAfter(#13);
word_sj.documents.item(1).Range.InsertAfter('test');//这一行为什么不显示啊???
word_sj.documents.open(YourPath+'\A文档.doc');
word_sj.documents.item(1).range.copy;
word_sj.documents.item(1).close;
lastparagraph:=word_sj.documents.item(1).paragraphs.count;
word_sj.documents.item(1).paragraphs.item(lastparagraph).range.Paste;

解决方案 »

  1.   

    就是我要在word文档中插入一些文字,单独使用都可以
    但是在上面的代码中使用时就是不显示,不知为什么??
      

  2.   

    我也正在做有关word调用的例程,正在搜索中
    你的上一贴我也看了,这一贴:你在
    word_sj.documents.item(1).Range.InsertAfter('test');//这一行为什么不显示啊???
    后加一句
    word_sj.documents.item(1).Range.InsertAfter('');
    试一试