You can do this by calling the method Document.InlineShapes.AddPicture().
The following example inserts an image into the active document before the second sentence.
require 'win32ole'
word = WIN32OLE.connect('Word.Application')
doc = word.ActiveDocument
image = 'C:\MyImage.jpg'
range = doc.Sentences(2)
params = { 'FileName' => image, 'LinkToFile' => false,
'SaveWithDocument' => true, 'Range' => range }
pic = doc.InlineShapes.AddPicture( params )
The documentation for the AddPicture () method can be found here .
Word Ruby .