L
Len B
Years ago, I had occasion to produce a custom document based on other
documents. In those DOS days I used WordStar which had a concept of a
control document and a variables document.
The variables document (ASCII) contained things like -
set name=Fred Smith
set age=45
The control document would be like this -
include variables.txt
set number=7
if age<50 then include young1.doc else include old1.doc
include terms.doc (could include merge variables like age)
if age<50 then include young2.doc else include old2.doc
include summary.doc (could merge Fred's name, age etc. too)
if number ... etc. etc.
I would programmatically create a variables.txt for Fred Smith overwriting
the former variables.txt and I would then print the control document which
would take care of formatting, page breaks and the like to produce the
custom document to suit Fred.
What ways do you see to accomplish a similar task now using Word? I
anticipate a boilerplate document of some sort and something like Access
producing another document to drive/control the process of
including/excluding other documents and inserting or merging variables like
age or DoB in the boilerplate. The end result would be a document tailored
to Fred.
If someone could suggest a technique or two along with some relevant
keywords to search the help on, I would appreciate it.
TIA
documents. In those DOS days I used WordStar which had a concept of a
control document and a variables document.
The variables document (ASCII) contained things like -
set name=Fred Smith
set age=45
The control document would be like this -
include variables.txt
set number=7
if age<50 then include young1.doc else include old1.doc
include terms.doc (could include merge variables like age)
if age<50 then include young2.doc else include old2.doc
include summary.doc (could merge Fred's name, age etc. too)
if number ... etc. etc.
I would programmatically create a variables.txt for Fred Smith overwriting
the former variables.txt and I would then print the control document which
would take care of formatting, page breaks and the like to produce the
custom document to suit Fred.
What ways do you see to accomplish a similar task now using Word? I
anticipate a boilerplate document of some sort and something like Access
producing another document to drive/control the process of
including/excluding other documents and inserting or merging variables like
age or DoB in the boilerplate. The end result would be a document tailored
to Fred.
If someone could suggest a technique or two along with some relevant
keywords to search the help on, I would appreciate it.
TIA