Microsoft KB Archive/31585

Included Document Can Reference Data Document in Word

PSS ID Number: Q31585 Article last modified on 11-02-1994

4.00 5.00 5.50 6.00

MS-DOS

= SUMMARY =

In Microsoft Word a document referenced with an INCLUDE instruction can also include references to the data document. The data document can be referenced with the DATA instruction in either the main document or the included document; however, it must be specified before any field names are referenced.

The following is an example of the main document MAIN.DOC, using the INCLUDE instruction to include the file OTHER.DOC, which references the data document DATA.DOC:

MAIN.DOC: < > Hello <>, <>

OTHER.DOC: Goodbye <>

DATA.DOC: Firstname,Lastname John,Smith Bob,Doe

Executing the Print Merge Printer command produces the following output:

Page1: Hello Smith, Goodbye John.

Page2: Hello Doe, Goodbye Bob.

KBCategory: kbother KBSubcategory: Additional reference words: wdmerge ============================================================================= Copyright Microsoft Corporation 1994.