require 'win32ole' word=WIN32OLE.new("word.application") word['Visible']=TRUE worddoc=word.documents.add() worddoc.Content.Text="asdf" worddoc.SaveAs "Graph.doc" worddoc.close