Hello there,
I am calling mail merge - ExecuteWithRegions(ds) but the output document is always appended with an extra page at the end of document.
This may be because of the reason that I am calling InsertBreak after inserting MergeFields at the top and bottom of my source document.
DocumentBuilder docBuilder = new DocumentBuilder(objTemplateDocument);
docBuilder.MoveToDocumentStart();
docBuilder.InsertField("MERGEFIELD TableStart:Properties", "½TableStart:Properties╗");
docBuilder.MoveToDocumentEnd();
docBuilder.InsertField("MERGEFIELD TableEnd:Properties", "½TableEnd:Properties╗");
docBuilder.InsertBreak(BreakType.PageBreak);
But, if I don’t call docBuilder.InsertBreak(BreakType.PageBreak); then all the merge records are just appended one after another,
whereas I want them on separate page.
FYI, My source document is one page template.
Please guide.
I have attached my source document as well as output docs with/without InsertBreak().
Thank you!