<mailMerge>
(Mail Merge Settings)
This element specifies all of the mail merge information for a document that has been connected to an external data source as part of a mail merge operation.
The document which contains this mail merge data may be of one of two types:
A source document, the document which contains all of the information for the mail merge, and is used in conjunction with an application to connect to an external data source and create one document for each record in that data source.
A merged document, a document which contains all of the information for the mail merge as well as a reference to a single specific record which shall be used to populate the values of all of the merge fields in that document.
The information in this element shall contain all data needed to connect to a data source and populate any merge fields in the document with data from that data source.
<w:mailMerge> … <w:dataType w:val="spreadsheet" /> <w:query w:val="SELECT * FROM `Sheet1$`" /> <w:dataSource r:id="rId1" /> … </w:mailMerge>
Here, the <dataType>
(§2.14.10) and <dataSource>
(§2.14.9) elements specify that the given document shall be connected to the external data source referenced by the relationship whose id value is equal to rId1
. While connected to the external data source, the document together with a hosting application may extract data from the external data source as specified by the <query>
(§2.14.26) element. ]
Parent Elements |
---|
|
Child Elements |
Subclause |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_MailMerge">
<sequence>
<element name="mainDocumentType" type="CT_MailMergeDocType" minOccurs="1"/>
<element name="linkToQuery" type="CT_OnOff" minOccurs="0"/>
<element name="dataType" type="CT_MailMergeDataType" minOccurs="1"/>
<element name="connectString" type="CT_String" minOccurs="0"/>
<element name="query" type="CT_String" minOccurs="0"/>
<element name="dataSource" type="CT_Rel" minOccurs="0"/>
<element name="headerSource" type="CT_Rel" minOccurs="0"/>
<element name="doNotSuppressBlankLines" type="CT_OnOff" minOccurs="0"/>
<element name="destination" type="CT_MailMergeDest" minOccurs="0"/>
<element name="addressFieldName" type="CT_String" minOccurs="0"/>
<element name="mailSubject" type="CT_String" minOccurs="0"/>
<element name="mailAsAttachment" type="CT_OnOff" minOccurs="0"/>
<element name="viewMergedData" type="CT_OnOff" minOccurs="0"/>
<element name="activeRecord" type="CT_DecimalNumber" minOccurs="0"/>
<element name="checkErrors" type="CT_DecimalNumber" minOccurs="0"/>
<element name="odso" type="CT_Odso" minOccurs="0"/>
</sequence>
</complexType>