Quote from rb on 12/12/08 at 14:24:14:I created a simple field in a Word template:
{INCLUDETEXT "\"C:\\Doc1.doc\"" \* MERGEFORMAT}
and this worked fine. Next, I inserted the Ecco field that controls the doc number, "DocType"
{INCLUDETEXT "\"C:\\Doc{MERGEFIELD DocType}.doc\"" \* MERGEFORMAT}
This also worked great when Doc1 and Doc2 are simple text documents:
Doc1: This is Doc 1
Doc2: This is Doc 2
However, I get an error when I try to add Ecco Fields to Doc 1 and Doc 2 (I added Company field);
This is Doc 1
Company = {MERGEFIELD Company}
I guess this is related to your comment about defining the fields in the inserted file? However, I did not understand what you meant by this.
does this: {MERGEFIELD Company} appear in MAIN doc ?
Edited:
note:
in general
it makes sense to add a complete command line interp. to MM.
ie. all options (including which file to merge from) would be command line option.
would allow doing specific merges from batch file, etc.
if there are others who would be interested in this... is something that is possible to do.