More help with _WordDocAddPicture

4 posts in this topic

Kohr 0

I am basically trying to use the functions from Word.au3 to replace methods I used before. What I am doing is I would enter text in Word, insert a picture, then insert a PageBreak. This would give me a nice text/picture view for each page in Word. This is represented using the following code.

What I wanted to do is use function _WordDocAddPicture to replace the code ".InlineShapes.AddPicture ($DefaultPath & "Temp\MWSnap.png", False, True)" but I am not exactly sure how to do this. I did notice there is a "range" option to that function but I am having terrible luck using it.

When I did get it to work it would insert the picture before any of the text even though I had ".TypeText" before the function (which is probably correct I am just not grasping why).