I try to open pptx file in PowerPoint 2010 programaticaly from Ruby using win32ole
@power_point = WIN32OLE.new('PowerPoint.Application')
@power_point.Visible = true
@power_point.DisplayAlerts = 1 # ppAlertsNone
@power_point.FileValidation = 1 # msoFileValidationSkip
@doc = @power_point.Presentations.Open(win_path(path), 0, 0, 0)
@doc.UpdateLinks
@doc.EnsureAllMediaUpgraded
@doc.Final = false
File opened that way daesn't display background images, only icon and "Background image can't be loaded" or something like that. Before I run my script when I try to open presentation by double-click all images are visible? What is problem? I have completly no idea what I do wrong.