Click here to Skip to main content
11,930,449 members (57,083 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB VB.NET MS-Word
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 20: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 | Mobile
Web04 | 2.8.151126.1 | Last Updated 23 May 2013
Copyright © CodeProject, 1999-2015
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