|
-
Jun 16th, 2008, 04:18 AM
#1
Thread Starter
New Member
AddPicture Problem
Hi All,
My VB Code opens a statement in word and my motive is to add a logo to that statement.
The positioning of logo is determined by parameters top, left, width, height which are available to me.
Reading through forums and other documentation I realised that there are 2 ways of adding a picture to a word doc:
1) Using inlineshapes.AddPicture
This accepts a "range" parameter for positioning a picture inline with the text.
2) Using Shapes.AddPicture
This accepts co-ordinates and width height and floats picture on word document.
My Problem is when I use 1st approach i.e. inlineshapes.AddPicture I m unable to control positioning based upon co-ordinates and height width.
And when I use 2nd approach, the picture doesnot appear in my statement (though when I take any word doc and change its extn as my statement type and then try this approach, it works fine but not on original statement.)
I'm sure of lacking some insights on how to use AddPicture.
Any help shall be appreciated.
Thanks and Regards,
Saun
-
Jun 16th, 2008, 06:00 AM
#2
Re: AddPicture Problem
Are you using Word VBA or VB6?
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
|