来这里 看看http://expert.csdn.net/Expert/topic/1122/1122963.xml?temp=.9581568

解决方案 »

  1.   

    class ExecEmo{ public static void main(String[] args) { Runtime r = Runtime.getRuntime(); Process p = null; try { p = r.exec("d:\\md.exe"); p.waitFor(); } catch (Exception e) { System.out.println("Error executing notepad"); } System.out.println("Notepad returned " + p.exitValue()); }}这是别给我做的一个列子,p = r.exec("d:\\md.exe"); 这句改成 p=r.exec(WORD程序的所在径就行,同里也可打开一个.DOC文件 )
      

  2.   

    我不要这样调用,我要用jacob中的例子,去替换word中的字符串。
      

  3.   

    http://expert.csdn.net/Expert/topic/1122/1122963.xml?temp=.9581568
      

  4.   

    我不要这样调用,我要用jacob中的例子,去替换word中的字符串。