Results 1 to 5 of 5
  1. #1
    5 Star Lounger
    Join Date
    May 2001
    Location
    Patterson Lakes, Melbourne, Victoria, Australia
    Posts
    636
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Inserting pics in Word doc (2002 SP3)

    I am trying to insert 2 merged pictures into a Word merge doc from Access. In code, I build a Word doc as the data source and open the existing merge doc. However the only way I can think to insert pics is with the {IncludePicture} field. To ensure that the pics sizes are constant, I insert the fields into a 2 cell table, with bookmarks
    Regards,
    Peter

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 28 Times in 28 Posts

    Re: Inserting pics in Word doc (2002 SP3)

    I don't see how this code could work at all, since you're not inserting merge fields, just text surrounded by ordinary brackets.

  3. #3
    5 Star Lounger
    Join Date
    May 2001
    Location
    Patterson Lakes, Melbourne, Victoria, Australia
    Posts
    636
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Inserting pics in Word doc (2002 SP3)

    Thanks Hans, but that code does indeed insert fields. When I select
    Regards,
    Peter

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 28 Times in 28 Posts

    Re: Inserting pics in Word doc (2002 SP3)

    Your code does create an INCLUDEPICTURE field, but not a MERGEFIELD inside it - the brackets around MERGEFIELD ... are ordinary text brackets, not field brackets (your screenshot confirms this). When you merge, the MERGEFIELD text remains as it is, it is not replaced by the contents of the PicFileName field, resulting in an invalid path.

    Here are some links about using images in mail merge:
    Mail Merge Graphics (Graham Mayor)
    Mail Merge FAQ (Cindy Meister)
    HOW TO: Add a Graphic or Logo to Every Label in Word 2000 (MSKB)

  5. #5
    5 Star Lounger
    Join Date
    May 2001
    Location
    Patterson Lakes, Melbourne, Victoria, Australia
    Posts
    636
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Inserting pics in Word doc (2002 SP3)

    Ever feel like saying DUH? I don't know how you do it, but I'm grateful.
    Thanks Hans
    Regards,
    Peter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •