Click here to Skip to main content
11,490,801 members (75,105 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: VB VB.NET MSWord
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 at 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 at 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 at 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
0 Sergey Alexandrovich Kryukov 521
1 Andy Lanng 288
2 Sascha Lefèvre 240
3 Maciej Los 195
4 OriginalGriff 173
0 Sergey Alexandrovich Kryukov 9,713
1 OriginalGriff 8,475
2 Sascha Lefèvre 3,544
3 Maciej Los 3,106
4 Richard Deeming 2,370

Advertise | Privacy | Mobile
Web01 | 2.8.150520.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