Refresh fields by code - specifically {INCLUDEPICTURE}
From: john smith (someone_at_microsoft.com)
Date: 12/13/04
- Next message: *** W.: "Re: Record Lengths and Page Breaks"
- Previous message: Doug Robbins: "Re: Sending Mail Merge to Email to Multiple Recipients in the Same"
- Next in thread: Graham Mayor: "Re: Refresh fields by code - specifically {INCLUDEPICTURE}"
- Reply: Graham Mayor: "Re: Refresh fields by code - specifically {INCLUDEPICTURE}"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 13 Dec 2004 23:03:53 +1100
I have written a VB app that creates images according to their part# (ie
1.jpg, 2.jpg, 3.jpg ...) and stores all of them in a temp folder.
The app then makes a DataDoc.doc (with boring things like PartName, Material
blah blah) and includes the image-path-name, by using {INCLUDEPICTURE
"C:\\TEMP\\{MERGEFIELD PartID}.jpg"}.
If I stop the formletter document before printing - I see the one picture
repeated for each and every label.
I can select All (ctrl-A) and refresh (F9) - and the correct (differing)
pictures merge. Brilliant!!
How can you refresh INCLUDEPICTURE by using code. I cannot have the user
doing this each time!
PS Have tried: (with no luck)
With oApp.ActiveDocument.MailMerge
.Application.Selection.WholeStory
.Application.Selection.Fields.Update
End With
also tried SENDKEYS - maybe I had F9 wrong.
TIA
Froggie
- Next message: *** W.: "Re: Record Lengths and Page Breaks"
- Previous message: Doug Robbins: "Re: Sending Mail Merge to Email to Multiple Recipients in the Same"
- Next in thread: Graham Mayor: "Re: Refresh fields by code - specifically {INCLUDEPICTURE}"
- Reply: Graham Mayor: "Re: Refresh fields by code - specifically {INCLUDEPICTURE}"
- Messages sorted by: [ date ] [ thread ]