Ruby 打开 Word 文档并插入数据 2015/01/31 13999 require 'win32ole' word=WIN32OLE.new("word.application") word['Visible']=TRUE worddoc=word.documents.add() worddoc.Content.Text="asdf" worddoc.SaveAs "Graph.doc" worddoc.close