11.7 Mail Merge Data Source

11.7 Mail Merge Data Source

Source Relationship:

http://purl.oclc.org/ooxml/officeDocument/relationships/mailMergeSource

A document that stores information about a mail merge operation is permitted to contain a Document Settings part (11.3.3) whose relationship item targets the file location of the necessary data source using this relationship.

[Example: Consider a document specifying a mail merge whose data source is located at http://www.openxmlformats.org/data.txt:

<Relationships xmlns="…">
  <Relationship Id="rId1"
    Type="http://…/mailMergeSource"
    Target="http://www.openxmlformats.org/data.txt"
    TargetMode="External"/>
</Relationships>

The document’s Document Settings part contains a dataSource element that explicitly references this relationship:

<w:settings >
  <w:mailMerge>
    <w:dataSource r:id="rId1" />
  </w:mailMerge>
</w:settings>

end example]

A mail merge data source shall be located external to the package containing the relationships part (expressed syntactically, the TargetMode attribute of the Relationship element shall be External).

Last updated on