DOCPROPERTY after Merge

1

1960JCAP

I have this custom property in my document:
custom --> "c:\\logo.jpg"

and I have this command before merge:
{INCLUDEPICTURE "{DOCPROPERTY custom}" \d \* MERGERFORMAT}

After merge I have in the new document:
{INCLUDEPICTURE "c:\\logo.jpg" \d \* MERGERFORMAT}

But, I need keep the original command after merge because the "custom"
property is variable. I want merge the MERGEFIELD field of a source data but
no the DOCPROPERTY field.

Is possible? Any idea? Very thanks for help.
 
P

Peter Jamieson

The trouble is that the merge process tries to resolve as many fields as
possible, with a few exceptions. No way is provided to say "don't resolve
this field type". So the only suggestions I can make are:
a. use VBA to re-insert the appropriate DOCPROPERTY field where necessary
b. put your { DOCPROPERTY } field in a separate document (probably just for
use with this particular mailmerge main document) and use soemthing like

{ INCLUDEPICTURE "{ INCLUDETEXT docpropfield.doc }" \d }

You may need to select the field in docpropfield.doc and create a bookmark,
e.g. called bodytext, then use

{ INCLUDEPICTURE "{ INCLUDETEXT docpropfield.doc bodytext }" \d }

to avoid inserting the included document's end-of-document marker.

Peter Jamieson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top