Rubyでwordファイルを開けて印刷する

rubyコード:
require “win32ole"

docfile = “startnews24_print.doc"

word = WIN32OLE.new “Word.Application"
word.visible = true
word.documents.open docfile
word.options.printBackground = false

word.activeDocument.printOut
word.quit

Ruby

Posted by arkgame