F
Feng
Hi,
currently, I use the following code:
Dim fldCode as String
WordMergeField = WordMergeFields.Add(WordSelection.Range, type)
fldCode = WordMergeField.Code.Text
WordMergeField.Delete()
WordInline.AddPicture("C:\proj\hrosen\JPT0803\Signature\" & fldCode & ".bmp", True, False, WordSelection.Range)
The problem is Code.text removes the brackets around the wordMergeField. the merge field I'm using actually provides the name of each image. Basically I want the Document to show up something like,
{INCLUDEPICTURE "C:\\proj\\hrosen\\JPT0803\\Signature\\{MergeField LIST}.bmp" \d }
instead, I'm getting
{INCLUDEPICTURE "C:\\proj\\hrosen\\JPT0803\\Signature\\MergeField LIST.bmp" \d }
with this code. What can I do to change this?
Thanks
currently, I use the following code:
Dim fldCode as String
WordMergeField = WordMergeFields.Add(WordSelection.Range, type)
fldCode = WordMergeField.Code.Text
WordMergeField.Delete()
WordInline.AddPicture("C:\proj\hrosen\JPT0803\Signature\" & fldCode & ".bmp", True, False, WordSelection.Range)
The problem is Code.text removes the brackets around the wordMergeField. the merge field I'm using actually provides the name of each image. Basically I want the Document to show up something like,
{INCLUDEPICTURE "C:\\proj\\hrosen\\JPT0803\\Signature\\{MergeField LIST}.bmp" \d }
instead, I'm getting
{INCLUDEPICTURE "C:\\proj\\hrosen\\JPT0803\\Signature\\MergeField LIST.bmp" \d }
with this code. What can I do to change this?
Thanks