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.