I call Word to create a document and use find and replace to replace specified places with data I want. Now I want to insert a picture into a specified spot.
I use: oWord.ActiveDocument.Bookmarks("OffenderPhoto").Select to position the cursor, which works.
I then use: oWord.ActiveDocument.Shapes.AddPicture('c:\sor.jpg',.F.,.T.,,,75,75) to insert the picture and size it, which also works.
However, the picture is put at the beginning of the document. I don't know the exact position each time so I need to be able to position based on my bookmark. If I use InLineShapes.AddPicture, the picture ends up where I want, but I cannot size it. Shapes.AddPicture has a range parameter but I cannot figure out how to use it.
Any thoughts on how to accomplish this would be appreciated.
I use: oWord.ActiveDocument.Bookmarks("OffenderPhoto").Select to position the cursor, which works.
I then use: oWord.ActiveDocument.Shapes.AddPicture('c:\sor.jpg',.F.,.T.,,,75,75) to insert the picture and size it, which also works.
However, the picture is put at the beginning of the document. I don't know the exact position each time so I need to be able to position based on my bookmark. If I use InLineShapes.AddPicture, the picture ends up where I want, but I cannot size it. Shapes.AddPicture has a range parameter but I cannot figure out how to use it.
Any thoughts on how to accomplish this would be appreciated.