CREATE.WORD.DICT

CREATE.WORD.DICT creates a DOS file containing a list of dictionaries for a given PICK file. The DOS file can then be used by Word for Windows users to assist in the creation of mailmerge documents. The DOS file can be attached from Word's Print Merge menu. Clicking on the insert field button in Word will then reveal, as a select list, all the given fields in this file

CREATE.WORD.DICT may be invoked from the TCL command line as follows:

CREATE.WORD.DICT PICK.FILE.NAME, DOS.FILE.NAME

Where:

PICK.FILE.NAME

Is the actual PICK file name in this account to use for the list.

DOS.FILE.NAME

Is the full DOS path and DOS file name to store the result in. Normally this path will be where Word has easy access to it.

CREATE.WORD.DICT Example

To create a DOS file called STAFF.LST in the directory D:\WINWORD, use:

CREATE.WORD.DICT STAFF D:\WINWORD\STAFF.LST

Using Print Merge from Word's File menu and selecting this file as the ATTACH HEADER file you can use the Insert Field button to select any fields from the STAFF file you wish to use in the merge.

Note: Word does not support dots (.) in dictionary/field names. This routine automatically deals with this by replacing all dots with underscores, as appropriate.