We have implemented mail merge functionality. If we have multiple records in the datasource,
Instead of generating new page for each record it is appending the second record content below the first content.
I am sharing you the sample source word document what we are using for mail merge.Please find the attachment.
I am also sharing you the code snippet what we have written for merge.
Dim ms As MemoryStream = New MemoryStream()
Dim doc As New Document(filePath)
doc.MailMerge.Execute(ds.Tables(0))
If (filetype = "doc") Then
doc.Save(ms, SaveFormat.Doc)
Else
doc.Save(ms, SaveFormat.Pdf)
End If
Can you please suggest me the steps to resolve this issue.
Thanks
for your inquiry. Please
note that Aspose.Words inserts sections with the same type of template
document section while mail merge process for each record. Please see
the attached image for detail.