Hi lee,The code I used is just the one you provided previously. The document is not the read-only document, but it will popup a dialog box which shows "which type do you want to open this file?" . Below it shows three choice to select. However when I select it, the error comes out. What's more , the correct result will show in a read-only but same-named word file which occurs suddenly.And it needs to "save as" as a Word opreation .
By the way, when I try to insert the image to an Excel file as a second choice, I also meet some problems. And I post them to that page.
This's the link :
http://www.rpaforum.net/threads/write-images-to-excel.958/
Thanks for your help again.
The problem you are facing while saving the word document is due to this and the solution is also mentioned on the same post.