Click here to Skip to main content
Rate this: bad
good
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 19:43pm

1 solution

Rate this: bad
good
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.
  Permalink  
Comments
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)



Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 23 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid