Click here to Skip to main content
13,512,750 members
Rate this:
Please Sign up or sign in to vote.
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 22-May-13 19:43pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.180417.1 | Last Updated 23 May 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100