Results 1 to 6 of 6

Thread: Word - Fill Image in Mail Merge

  1. #1

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    9,776

    Word - Fill Image in Mail Merge

    I have a word document that I use to send out mailers.

    The document uses normal mail merge fields to fill out their information such as name and address, but what I'd like to be able to do is store the path of a local file in my address list so that an image can be loaded using that path.

    Is this possible? If not, I'm going to resort to setting up simple web application that does this for me. The only issue is that the guy who built the word document made it in such a way that it would be a pain in the rear to convert it to HTML. So I'd like to avoid that if at all possible.

  2. #2

  3. #3

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    9,776

    Re: Word - Fill Image in Mail Merge

    Cool deal, I appreciate those links.

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,085

    Re: Word - Fill Image in Mail Merge

    so that an image can be loaded using that path.
    do you want different images for each merge doc?
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  5. #5

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    9,776

    Re: Word - Fill Image in Mail Merge

    Yes, that is the idea. I would store the image location in the datasource and when it goes to do the mail merge, it will load the path of the currently iterated record.

  6. #6
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,085

    Re: Word - Fill Image in Mail Merge

    Code:
    { INCLUDEPICTURE "c:\\staff\\pictures\\
    { MERGEFIELD “FirstName” }.jpg" 
    \*MERGEFORMAT \d }
    https://onmerge.com/articleIncludePicture.html
    this site offers detailed instructions for includepicture mergefield
    and also offers a power tool (pay for, but offers free try out) to avoid some limitations and annoyances of the above
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

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