2008/12/15 Talib Hussain <talibhn / gmail.com>:
> How to Use CTRL + C ie Copy to clipboard text from word file.

require 'win32ole'
word = WIN32OLE.new('word.application')
file = 'c:/work/test.doc'
doc = word.documents.open(file,'ReadOnly' => true)
word.selection.wholestory  # select whole text
word.selection.copy          # copy to clipboard
word.activedocument.close(false)
word.quit

Regards,
Park Heesob