Insert Image into Word Document Bookmark
Posted on 2002-06-27
I have a template set up in Microsoft Word. There is a bookmark called IMAGE, and that is where I want to insert an image if one is selected from my VB program. In my VB program I am using a common dialog box to allow people to choose an image and then I have a picture box called picture1 that displays the image, so that a person can see if he/she likes the image before creating the word document with the image in it... the only problem is that I am having trouble inserting the image. I have tried copying it to the clipboard and pasting it in the bookmark, but that didn't seem to work...here is what I have so far:
ElseIf UCase$(lsBookmarkName) = "IMAGE" Then
Clipboard.Clear ' Clear Clipboard.
For some reason it puts whatever is in the next bookmark in the place where I have the IMAGE bookmark...