Write the Code to Insert Data into Word : Word « Windows Platform « Ruby






Write the Code to Insert Data into Word


require 'win32ole'


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

 








Related examples in the same category

1.Using WIN32OLE with word
2.Microsoft Word document
3.Open a word file and print it out