Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Len B[_2_] Len B[_2_] is offline
external usenet poster
 
Posts: 3
Default How many ways to do it?

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 age50 then include young1.doc else include old1.doc
include terms.doc (could include merge variables like age)
if age50 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

--
Len
__________________________________________________ ____
remove nothing for valid email address.


  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default How many ways to do it?

You can do much the same thing with either SET fields, ASK fields or (more
sophisticated) with Userforms
http://word.mvps.org/FAQs/Userforms.htm and use conditional fields to employ
the results eg

{ ASK Age Age }{ IF { Age } 50 "{ IncludeText C"\\path\\old.doc" }" "{
IncludeText C"\\path\\young.doc" }" }

will insert old.doc or young.doc

{ ASK Age Age }{ ASK Name Name }{ IncludeText c:\\path\\{Ref Age}{Ref
Name}.doc"}

will insert c:\path\agename.doc
etc

See http://www.gmayor.com/formatting_word_fields.htm

See also the boiler.dot add-in you can download from my web site which will
insert a document or documents at the cursor.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Len B wrote:
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 age50 then include young1.doc else include old1.doc
include terms.doc (could include merge variables like age)
if age50 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



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Len B[_2_] Len B[_2_] is offline
external usenet poster
 
Posts: 3
Default How many ways to do it?

Thanks Graham,
I have not heard of userforms before so I'll check them out. I've just
downloaded boiler.dot so I'll look into that too.

Congrats on your site. I know where I'll look next time I have a Word
question.
Thanks again.
--
Len
__________________________________________________ ____
remove nothing for valid email address.
"Graham Mayor" wrote in message
...
| You can do much the same thing with either SET fields, ASK fields or (more
| sophisticated) with Userforms
| http://word.mvps.org/FAQs/Userforms.htm and use conditional fields to
employ
| the results eg
|
| { ASK Age Age }{ IF { Age } 50 "{ IncludeText C"\\path\\old.doc" }" "{
| IncludeText C"\\path\\young.doc" }" }
|
| will insert old.doc or young.doc
|
| { ASK Age Age }{ ASK Name Name }{ IncludeText c:\\path\\{Ref Age}{Ref
| Name}.doc"}
|
| will insert c:\path\agename.doc
| etc
|
| See http://www.gmayor.com/formatting_word_fields.htm
|
| See also the boiler.dot add-in you can download from my web site which
will
| insert a document or documents at the cursor.
|
| --
|
| Graham Mayor - Word MVP
|
| My web site www.gmayor.com
| Word MVP web site http://word.mvps.org
|
|
|
| Len B wrote:
| 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 age50 then include young1.doc else include old1.doc
| include terms.doc (could include merge variables like age)
| if age50 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
|
|


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Formulas 3 Ways Lenny Tables 1 August 30th 07 12:12 AM
how many ways to merge mails? r New Users 1 May 25th 06 04:36 AM
what are the 5 ways of POSITIONING art in Word? Skylar New Users 1 February 27th 06 10:12 PM
Word opens a doc 2 ways? Rooster Microsoft Word Help 10 October 14th 05 11:09 PM
Word's "helpful" ways Caty Microsoft Word Help 3 December 15th 04 09:45 PM


All times are GMT +1. The time now is 02:17 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"