+ Reply to Thread
Results 1 to 19 of 19

Getting full file path instead of photograph in mail merge document

  1. #1
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Getting full file path instead of photograph in mail merge document

    Bump!

    Hi friends,

    I want to insert a photograph in a mail merge document for each record. I'm getting a full file path of a jpg file instead of a photograph in a mail merge document.

    Any help will be highly appreciated.

    Thanking you in anticipation.
    Attached Files Attached Files
    Last edited by mso3; 03-03-2016 at 03:13 AM.

  2. #2
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting full file path instead of photograph in mail merge document

    Bump!

    Hi friends,

    I want to insert a photograph in a mail merge document. I'm getting a full file path of jpg file instead of a photograph in word document.

    Any help will be highly appreciated.

    Thanking you in anticipation.
    Sincerely,

    mso3

  3. #3
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Getting full file path instead of photograph in mail merge document

    See Managing Mailmerge Graphics in the Mailmerge Tips and Tricks thread at:
    http://www.msofficeforums.com/mail-m...ps-tricks.html
    or:
    http://windowssecrets.com/forums/sho...ips-amp-Tricks
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  4. #4
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting full file path instead of photograph in mail merge document

    Hi Paul,

    Greetings from me!

    Thank you. First of all I take an opportunity to congratulate you for your excellent guide for mail merge. I visited the sites you suggested and found it informative. However, I didn't understand the instructions to insert an images in a mail merge document. I'm confused. Will you please see my document attached in a first post and guide me step by step instructions to achieve the target?

    Sorry for trouble.

    Thank you and have a nice day.

  5. #5
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Getting full file path instead of photograph in mail merge document

    The instructions in the links are about as straightforward as they can get. Since the path to the images is held in the same field as the image name in the mailmerge data source, you could use a field coded as:
    {IF{INCLUDEPICTURE {IF TRUE "«Image»"} \d} {INCLUDEPICTURE {IF TRUE "«Image»"} \d}}
    or:
    {IF{INCLUDEPICTURE {IF TRUE "{MERGEFIELD Image}"} \d} {INCLUDEPICTURE {IF TRUE "{MERGEFIELD Image}"} \d}}

    and, as Note 1 at the top of the link page says:
    The field brace pairs (i.e. '{ }') for the above examples are all created in the mailmerge main document itself, via Ctrl-F9 (Cmd-F9 on a Mac); you can't simply type them or copy & paste them from this thread or another website. Nor is it practicable (for the most part) to add them via any of the standard Word dialogues. Likewise, you can't type or copy & paste the chevrons (i.e. '« »') - they're part of the actual mergefields, which you can insert from the 'Insert Merge Field' dropdown. The spaces represented in the field constructions are all required.

  6. #6
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting full file path instead of photograph in mail merge document

    Hello Paul,

    Extremely sorry for not able to insert image in a mail merge document despite the clear instructions. The instructions in the links are about as straightforward as they can get. I click on insert mail merge field and get a column 'PICTURE' field to insert. After that in word document I get a merge field 'picture' with brackets. After running mail merge I get a full file path of picture which is in column 'picture' in excel file.

    Please see my word and excel file and suggest me what I'm doing wrong.

    Sorry for trouble. If possible send me a corrected file to understand your suggestions clearly.

    Thanking you and have a nice day.

  7. #7
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Getting full file path instead of photograph in mail merge document

    Quote Originally Posted by mso3 View Post
    Extremely sorry for not able to insert image in a mail merge document despite the clear instructions. The instructions in the links are about as straightforward as they can get. I click on insert mail merge field and get a column 'PICTURE' field to insert. After that in word document I get a merge field 'picture' with brackets. After running mail merge I get a full file path of picture which is in column 'picture' in excel file.

    Please see my word and excel file and suggest me what I'm doing wrong.
    Well, what you say you're doing isn't even close to what the instructions tell you to do. Inserting the «PICTURE» mergefield is only a small part of what's required. My last post even spelled out what you need to do...

  8. #8
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting full file path instead of photograph in mail merge document

    Hi Paul,

    Sorry! I didn’t understand the instructions correctly. I didn’t get an image path as per your suggestion. I do not understand where I’m going wrong. Please see the word mail merge output and suggest me correction.

    I’m doing it first time so I have a problem to follow the instructions correctly. Please don’t mind and guide me to achieve this target positively.

    Sorry for trouble.

    Thank you and have a nice time.
    Attached Files Attached Files

  9. #9
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Getting full file path instead of photograph in mail merge document

    There is nothing in your attachment to indicate that you've done anything more than just use your original mergefield. If you want help, you might at least post a document containing your implementation of the field code.

  10. #10
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting full file path instead of photograph in mail merge document

    Hi Paul,

    Extremely sorry for not understanding the instructions. I press F9 after inserting the original merge field 'picture' in the word document but no change in merge field. So I manually type the code you suggested in the word document but no require image output.

    Please guide me what shall I do after inserting the original merge field 'picture' in a word document. I have a problem here to understand the next action.

    Sorry for trouble.

    Thank you and have a nice day.
    Attached Files Attached Files

  11. #11
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Getting full file path instead of photograph in mail merge document

    Quote Originally Posted by mso3 View Post
    So I manually type the code you suggested in the word document but no require image output.
    Which only goes to show you have ignored the instructions you were given, both in the link and in post #5.

  12. #12
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting full file path instead of photograph in mail merge document

    Hi Paul,

    Now I changed the field name in excel file and got the merge field as per your suggestion in word document. Then ctrl +A and then F9. But still there is something wrong in my understanding. I’m getting the full path instead of picture.

    Now I’m nervous. Will you please share a corrected workbook for me to understand the mail merge image problem well? I’m feeling myself feeling guilty for not understanding your guidance correctly. I don’t want to trouble you more and waste your time on me.

    Sorry.
    Attached Files Attached Files

  13. #13
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Getting full file path instead of photograph in mail merge document

    You did not need to change anything in the Excel workbook. Messing around with the mergefield's code the way you have isn't going to achieve anything either. Maybe you should try do what the instructions say you need to do.

  14. #14
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting full file path instead of photograph in mail merge document

    Dear Paul,

    Extremely sorry for trouble. Really I'm confused and not understanding the instructions correctly. Therefore, I request you to send me a corrected copy of mail merge document and excel workbook. I will learn from that sample attachment. I found it very difficult to understand.

    Do send me a corrected sample positively for my better understanding.

    Sorry for trouble and have a nice time.

  15. #15
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Getting full file path instead of photograph in mail merge document

    See attached. Select the field and press Shift-F9. Then compare the field code with what the instructions say to do...
    Attached Files Attached Files

  16. #16
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting full file path instead of photograph in mail merge document

    Hi Paul,

    Thank you for picture field attachment. Since yesterday I tried my level best to follow your instructions to insert a picture in a mail merge document but in vain. I want to insert pictures in my mail merge document without fail. I’m feeling very guilty of me because since last 2/3 days you are guiding me to achieve the target patiently and I’m not able to follow you.

    Therefore, to achieve the target and close this prolonged thread I humbly request you to create a macro for me to avoide manual job. I’m optimistic that it will solve my problem.

    Please don’t mind and assist me positively.

    Waiting to receive a positive response from your end soon.

    Thanking you in anticipation.

  17. #17
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Getting full file path instead of photograph in mail merge document

    Quote Originally Posted by mso3 View Post
    I’m feeling very guilty of me because since last 2/3 days you are guiding me to achieve the target patiently and I’m not able to follow you.

    Therefore, to achieve the target and close this prolonged thread I humbly request you to create a macro for me to avoide manual job. I’m optimistic that it will solve my problem.
    I'm certainly not going to provide a macro to create something that requires you to do nothing more than either:
    1. follow some instructions that thousands of others have followed over the years; or, even more simply,
    2. copy and paste from the attachment I provided.
    As far as I am concerned, this discussion is ended.

  18. #18
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting full file path instead of photograph in mail merge document

    Hi Paul,

    Greetings from me!

    Now I have worked on it but I have problem in editing the path. I have deleted a column ‘picture’ from the database. There is a ‘NAME_E’ column which contains the names of persons. The file name of jpg file and name of person in column ‘NAME_E’ are same inn matching.

    Problems:
    1. Unable to delete .jpg extension from inserted picture file path. It selects entire path when the cursor moves on it. So I’m unable to edit it. How to make it editable?
    2. To avoide the the problem I changed the file format ‘word 97-2003’ format but in vain.
    3. Which is the correct format to save the file and output file?

    Steps I followed:

    1. Ctrl + F9 3 times
    2. Type ‘ INCLUDEPICTURE ’ in between second and third bracket.
    3. Type ‘ IF TRUE “
    4. Insert a picture file ‘link to file’ (here I want to delete the file extension .jpg which I’m unable to edit.)
    5. Insert merge field ‘NAME_E’ and type extension .jpg “
    6. Type ‘ \D ‘ in between first and second closing bracket.
    7. Select the link; copy it
    8. Press ctrl + F9; paste the link.
    9. Type ‘ IF ‘ in a left most first and second opening bracket.


    I’m attaching both word files for your reference. Please see it and guide me where I’m doing wrong. How to overcome this problem. Now if I run mail merge then there is no image.

    Sorry for trouble.

    Thanking you.
    Attached Files Attached Files

  19. #19
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Getting full file path instead of photograph in mail merge document

    See the last sentence in my previous reply. You have already had more than enough help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Getting full file path instead of photograph in mail merge
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-02-2016, 02:07 AM
  2. VBA to open a word document that is already linked in an Excel file for mail merge?
    By mshiddensecret in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-14-2015, 07:08 PM
  3. Replies: 0
    Last Post: 06-24-2015, 02:34 AM
  4. Mail merge to Word Document
    By Banaticus in forum Excel General
    Replies: 8
    Last Post: 08-08-2013, 04:28 AM
  5. Printing word document from full file path in textbox in userform
    By pharmsunil2010 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-14-2010, 05:37 AM
  6. Replies: 7
    Last Post: 10-09-2009, 10:10 AM
  7. [SOLVED] Printing Word Document from Hyperlink -- Can't get the full path!!! Please Help
    By JadPlane in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-17-2005, 07:06 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1