General information
Category:
COM/DCOM and OLE Automation
>After pasting the code to VFP and making the necessary syntax changes, I received an error message when trying to do anything with the picture :"The requested member of the collection does not exist".
>oWord=createobject('Word.Application')
>With oWord
> .Visible=.T.
> .Documents.Add
> .ActiveWindow.ActivePane.View.SeekView = 9 && wdSeekCurrentPageHeader
> .Selection.InlineShapes.AddPicture('d:\xyz.bmp')
> With .Selection.InlineShapes(1) && Error at this
Try addressing the InlineShapes collection through the document rather than through the Selection object:
oWord.ActiveDocument.InlineShapes[1]
Tamar
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only