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.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.