Re: Mail merge with nested forms
- From: "Peter Jamieson" <pjj@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 10 Apr 2007 18:36:24 +0100
On the whole Word mailmerge is so different (and less powerful, as I
understand it) compared to WordPerfect merge that it's advisable to avoid
trying to translate, feature for feature. Better to try to understand what
Word can and cannot do, and redesign. FWIW I do not know of any articles
designed to help people porting from WP.
If field (fieldname)='x' nestform(new merge doc1) else
If field (fieldname)='x' nestform(new merge doc2) else "Bad Data" endif
In this case you /might/ be able to do something like
{ IF "{ MERGEFIELD whatever1 }" = "x"
"{ INCLUDETEXT "pathname of doc1.doc" }"
"{ IF "{ MERGEFIELD whatever2 }" = "x"
"{ INCLUDETEXT "pathname of doc2.doc" }"
"Bad Data" }" }
(Sorry, I don't know enough about WP merge to be sure.)
However, the included documents would not be "forms" in any sense usually
used in Word - just more text and fields, and only the document you actually
start the merge with is attached to a data source - you can't change sources
in the middle of the merge.
Next, within doc 1 & 2 there are mergefields that look at a code and need
to
return a value from a different table look up file that inserts verbage
corresponding to code.
Again, you can for example use INCLUDETEXT to include text from a boomarked
part of a document, so if you know that a bookmark named x (which yoiu can
set using a { SET } field contains abc, def or ghi, you can have bookmarks
abc, def, and ghi in a file called "c:\myincludes\i.doc" and use
{ INCLUDETEXT "c:\\myincludes\\i.doc" { REF x } }
to get the relevant chunk from i.doc. And so on...
Peter Jamieson
"KP" <KP@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CB8191D7-4EF5-4BCF-A78A-7FBF8DD804CE@xxxxxxxxxxxxxxxx
I have old wordperfect merge documents in which I need to convert to WORD
but
am having trouble finding the correct commands to do so. Can anyone help
or
steer me to documentation that can help with .
I have a conditional statement that looks at a data field to determine
which
letter to merge. Then within the selected document I have conditions
that
look at a data field to merge specific text from another. can this field
look
at another lookup file?
Here are examples from Word perfect
If field (fieldname)='x' nestform(new merge doc1) else
If field (fieldname)='x' nestform(new merge doc2) else "Bad Data" endif
Next, within doc 1 & 2 there are mergefields that look at a code and need
to
return a value from a different table look up file that inserts verbage
corresponding to code.
Thanks for any help!
.
- Follow-Ups:
- Re: Mail merge with nested forms
- From: Kathy Webster
- Re: Mail merge with nested forms
- Prev by Date: Re: Merge Eliminates Records with Duplicate Last Names
- Next by Date: Creating a form for Word Table
- Previous by thread: Re: Merge Eliminates Records with Duplicate Last Names
- Next by thread: Re: Mail merge with nested forms
- Index(es):
Relevant Pages
|