|
-
Nov 21st, 2002, 07:29 AM
#1
Thread Starter
New Member
Loading a Image in word through Vb
Hai everybody,
I am trying to load an image in word through vb. The following is the code sample
Private wd As Word.Application
Set wd = New Word.Application
wd.Visible = True
wd.documents.open "c:\filename.bmp"
It opens the word but the bmp is in boxes ans different characters. Let me know how can i load the exact bmp in the word
application
Reply me as quick as possible.
yours ,
Gopal
-
Nov 21st, 2002, 07:59 AM
#2
Word.Application.Documents(1).InlineShapes.AddPicture FileName:= _
"C:\Path\File.bmp", LinkToFile:=False, SaveWithDocument:=True
-
Nov 21st, 2002, 11:12 PM
#3
Thread Starter
New Member
Thanks to alexRead
Thanks to alex_Read and all others.
The code provideb by alex_Read works fine.
yours,
Gopal
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|