WordBasic.InsertImagerScan

D

Danielw2007

Im creating a Word 2007 document in VB.net 2008 and have created the Tab with
the group and the button and assigned a picture to it but oviously i can't
use "WordBasic" is there another command i can use to trigger the
"InsertImagerScan" command?

Thankyou in advanced
 
J

Jay Freedman

Danielw2007 said:
Im creating a Word 2007 document in VB.net 2008 and have created the
Tab with the group and the button and assigned a picture to it but
oviously i can't use "WordBasic" is there another command i can use
to trigger the "InsertImagerScan" command?

Thankyou in advanced

The idea that 'oviously i can't use "WordBasic"' is incorrect. The WordBasic
object is a member of the
Microsoft.Office.Interop.Word.Application class. The thing that may be
misleading is that IntelliSense doesn't display the members of the WordBasic
object. However, this will work:



Dim oWord As Microsoft.Office.Interop.Word.Application

On Error Resume Next

oWord = CreateObject("Word.Application")

oWord.WordBasic.InsertImagerScan()


--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top