Merges all repeating blocks that are contained in the loaded template with the System.
public int MergeBlocks(System.Data.DataSet mergeData);
Parameter | Description |
---|---|
merge |
Specifies a System. |
Returns the number of successfully merged blocks.
The following example merges a block in a template.
TXTextControl.DocumentServer.MailMerge mailMerge1 = new TXTextControl.DocumentServer.MailMerge();
DataSet mergeData = new DataSet();
DataTable blockData = new DataTable("section1");
blockData.Columns.Add("name");
blockData.Columns.Add("company");
blockData.Rows.Add(new object[] { "Peter Jackson", "Text Control GmbH" });
blockData.Rows.Add(new object[] { "Jack Peterson", "The Imaging Source LLC" });
mergeData.Tables.Add(blockData);
mailMerge1.MergeBlocks(mergeData);