Office 2010 - Inserting into a word document a picture from a MSAccess field that has the "Picture Path" in it
hi
new @ this, hope can help.
the task need is:
- have word document template pulls information msaccess database. not issue. done mail merge facility nicely.
the issue msaccess database has able host "picture field". picture is different record record. picture should change depending record msaccess being used merge.
what have done is:
- msaccess picture field text field
- msaccess picture field content full path of location of picture starts , ends "", , every \ double \\. example "c:\\users\\~~~~~\\documents\\dummyclient-logo.gif"
- used insertpicture in word in location want picture
- used alt-f9 toggle-codes
- made sure placed cursor @ end of word includepicture, added space then used mail merge ribbon , insert field contains "picture path".
- pressed alt-f9 toggle-codes back
- pressed control select text
- pressed f9 update fields.
this shows picture requested under msaccess field. when use "preview" , move 2nd record mail merge, picture not change, after pressing f9 reupdate, although msaccess database states different picture.
hi mutkey,
mailmerge previews don't return correct result compound fields (in case, includepicture field). indeed, coded, output document won't show correct renderings of images until update fields in it.
fwiw, you'll better 'final' result if use field code along lines of:
{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}}
'image' name of data field containing image's path & name. these encodings both render , unlink images part of mailmerge process; you'd have manually otherwise.
note: field brace pairs (ie '{ }') above example created via ctrl-f9 - can't type them or copy & paste them message. likewise, can't type or copy & paste chevrons (ie '« »') - they're part of actual mergefields, can insert mailmerge toolbar.
cheers
paul edstein
[ms mvp - word]
Microsoft Office > Word IT Pro Discussions
Comments
Post a Comment