Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

Document.MailMerge Method

Name Parameters Description
MailMerge(Document) targetDocument Merges data to the current document and sends the result to the specified Document instance.
MailMerge(MailMergeOptions, Document) options, targetDocument Merges data to the current document and sends the result to the specified Document instance. Allows you to set the mail merge options.
MailMerge(MailMergeOptions, Stream, DocumentFormat) options, stream, format Merges data to the current document and sends the result in the specified format to a stream. Allows you to set mail merge options.
MailMerge(MailMergeOptions, String, DocumentFormat) options, fileName, format Merges data to the current document and saves the result to a file in the specified format. Allows you to set mail merge options.
MailMerge(Stream, DocumentFormat) stream, format Merges data to the current document, and sends the result in the specified format to a stream.
MailMerge(String, DocumentFormat) fileName, format Merges data to the current document and sends the result to a file in the specified format.