@Johnane,
Thanks for your inquiry. Please check the mail merge examples from Github repository.
Please check the following code example and check the attached template.
Docs.zip (47.1 KB)
// Create the Dataset and read the XML.
DataSet pizzaDs = new DataSet();
// Note: The Datatable.TableNames and the DataSet.Relations are defined implicitly by .NET through ReadXml.
// To see examples of how to set up relations manually check the corresponding documentation of this sample
pizzaDs.ReadXml(MyDir + "CustomerData.xml");
string fileName = "Invoice Template.doc";
// Open the template document.
Document doc = new Document(MyDir + fileName);
// Trim trailing and leading whitespaces mail merge values
doc.MailMerge.TrimWhitespaces = false;
// Execute the nested mail merge with regions
doc.MailMerge.ExecuteWithRegions(pizzaDs);
doc.Save(MyDir + "18.7.docx");
The “Page break before” property is set for the first paragraph of the document. This breaks the page after each record of order table. Hope this helps you.