Word automation, insert picture

G

Guest

I have a form that a user loads pictures onto using picture boxes. I want to
be able to insert those pictures into a Word document. How can I insert a
picture into a Word document through automation using VB.NET? So far I am
using the below:

Dim oWord As Word.Application
Dim oDoc As Word.Document

'Start Word
oWord = CreateObject("Word.Application")
oWord.Visible = True
oDoc = oWord.Documents.Add
 
G

Guest

Nevermind. I can use:

..InlineShapes.AddPicture(fileName:=pic1, _
LinkToFile:=False, SaveWithDocument:=True)
 

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