F
Feng
Hi
I successfully inserted variable pictures into the document using the procedure described on the Word MVP website. Afterward, I wanted to add a feature so that when the field that contains the alias to the picture is empty, word will choose a default picture. So, i used the following macro
{IF {Mergefield LIST} <> "" "{INCLUDEPICTURE "C:\\proj\\hrosen\\JPT0803\\Signature\\{Mergefield LIST}.bmp" \d }" "{INCLUDEPICTURE "C:\\proj\\hrosen\\JPT0803\\sign1.bmp.bmp" \d}"
In Word, I can select different records, highlight the page and press F9 to update and the picture will update. However, when I merge, it seems like word no longer looks at the if field and includepicture field as fields, because the first image was used for each record. When I tried to reveal code by using alt+F9 in the merged document, the images remained as images and did not reveal the code. What am I doing wrong? And is it possible to add a separate picture when the field is empty in Word
Thanks
I successfully inserted variable pictures into the document using the procedure described on the Word MVP website. Afterward, I wanted to add a feature so that when the field that contains the alias to the picture is empty, word will choose a default picture. So, i used the following macro
{IF {Mergefield LIST} <> "" "{INCLUDEPICTURE "C:\\proj\\hrosen\\JPT0803\\Signature\\{Mergefield LIST}.bmp" \d }" "{INCLUDEPICTURE "C:\\proj\\hrosen\\JPT0803\\sign1.bmp.bmp" \d}"
In Word, I can select different records, highlight the page and press F9 to update and the picture will update. However, when I merge, it seems like word no longer looks at the if field and includepicture field as fields, because the first image was used for each record. When I tried to reveal code by using alt+F9 in the merged document, the images remained as images and did not reveal the code. What am I doing wrong? And is it possible to add a separate picture when the field is empty in Word
Thanks