Message-ID: <1478053787.9679.1711698923571.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_9678_1546526604.1711698923571" ------=_Part_9678_1546526604.1711698923571 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Sets an IEnumerator co= llection as a data source to bind to a specified set of main document merge= fields.
=20public void SetDataSource(System.Collections.IEnumerator dataSource, Syste= m.String[] fieldNames, System.String dataSourceName)=20
Public Sub SetDataSource(ByVal dataSource As System.Collections.IEnumerator= , ByVal fieldNames As String(), ByVal dataSourceName As String)=20
IEnumerator
collection to use as the data source.=20
null
(C#) or=20
Nothing
(VB.NET) is passed to the method.=20
This method takes a collection of values and an array of field names. Th= e two must contain the same number of elements. Each name in the array of f= ield names must be the same as the corresponding merge field name in the te= mplate.
=20Each merge field in a WordWriter template must bind to a data source fie= ld/value pair. The number of merge fields in the main template document (th= e part of the document that is not within a repeat block) may not exceed th= e number of values in the data source defined by SetDataSource. However, the = number of values in the data source may be greater than the number of merge= fields in the main template document.
=20wordTempl.SetDataSource(collValues, arrNames, "Products"= ;);=20
wordTempl.SetDataSource(collValues, arrNames, "Products"= ;)=20