Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
I'm using VB pro and MS Word 2010, and I want to Insert an existing picturebox to my MS word.
I'm using this code :

Dim opic As Word.InlineShapes
opic = oDoc.Bookmarks.Item("Signature").Range.InlineShapes.AddOLEObject(SignaturePictureBox)

but it only gives me an error of "The program used to create this object is System. that program is either not installed on your computer or it is not responding. to edit this object, install system or ensure that any dialog boxes in System is closed." This pops out every time I try opening the Word template. I have used the word template for bookmarked textbox and datagrid and this never happened. But when I tried using the template for the picture box this happens? What do I do?
Posted

1 solution

You cannot add a .NET control (PictureBox) to a Word document.

If you want the image that the PictureBox is displaying to be added to the Word document, you have to add the image, not the PictureBox.
 
Share this answer
 
Comments
Karen Lim Yeung 23-May-13 11:01am    
I see then, may I ask what that error means?

Or is there any other way that I can automatically place a signature in MS Word?
Dave Kreskowiak 23-May-13 13:28pm    
That's Word telling you that it has no idea what application is used to edit/render the object you managed to insert into the document.
Karen Lim Yeung 23-May-13 21:08pm    
I see thank you! :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900