Results 1 to 2 of 2

Thread: AddPicture Problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2008
    Posts
    7

    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

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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
  •  



Click Here to Expand Forum to Full Width