Click or drag to resize

MailMerge Class

Represents a class for performing mail merge operations.
Inheritance Hierarchy
System Object
Spire.Doc.Reporting MailMerge

Namespace: Spire.Doc.Reporting
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public class MailMerge

The MailMerge type exposes the following members.

Properties
Name Description
Public property ClearFields
Gets or sets a value indicating whether [clear fields]. by default value is true.
Public property ClearGroupTag
Gets or sets a value indicating whether [clear group tag]. by default value is false.
Protected property Document
Public property HideEmptyGroup
Gets or sets a value indicating whether to remove groups which contain empty merge fields
Public property HideEmptyParagraphs
Gets or sets a value indicating whether to remove paragraphs which contain empty merge fields
Public property MailMergeMainDocumentType
Specifies the possible types for a mail merge source document.
Public property MappedFields
Gets the collection of mapped fields. Mapped fields represent mapping between fields names in the data source and mail merge fields in the document. The keys of the collection are merge field names and the values are field names in the data source.
Top
Methods
Name Description
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Public method Execute(IEnumerable)
Performs mail merge operation.
Public method Execute(DataRow)
Performs mail merge from a DataRow into the document
Public method Execute(DataTable)
Performs mail merge from a DataTable
Public method Execute(DataView)
Performs mail merge from a DataView
Public method Execute(IDataReader)
Performs mail merge from a DataView
Public method Execute(OleDbDataReader)
Performs mail merge from
Public method Execute( String , String )
Performs mail merge operation.
Public method ExecuteGroup
Performs mail merge operation.
Public method ExecuteWidthNestedRegion(DbConnection, List DictionaryEntry )
Executes nested mailmerge within a region for the specified data.
Public method ExecuteWidthNestedRegion(DataSet, List DictionaryEntry )
Executes the nested region.
Public method ExecuteWidthNestedRegion(MailMergeDataSet, List DictionaryEntry )
Performs mail merge operation.
Public method ExecuteWidthNestedRegion(DbConnection, List DictionaryEntry , Boolean)
Executes the nested region.
Public method ExecuteWidthRegion(DataTable)
Performs Mail Merge within a region from a DataTable.
Public method ExecuteWidthRegion(DataView)
Performs Mail Merge within a region from a DataView.
Public method ExecuteWidthRegion(IDataReader)
Performs Mail Merge within a region from a DataReader.
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetMergeFieldNames
Returns a collection of mergefield names found in the document.
Public method GetMergeFieldNames(String)
Gets the merge field names.
Public method GetMergeGroupNames
Gets the merge field names.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method SendMergeField
Protected method SendMergeGroup(GroupEventType, IRowsEnumerator)
Protected method SendMergeGroup(GroupEventType, IRowsEnumerator, IMergeField)
Protected method SendMergeImageField(IMergeField, Object, IRowsEnumerator)
Protected method SendMergeImageField(IMergeField, Object, String)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
Events
Name Description
Public event MergeField
Occurs during mail merge when a text merge field processing.
Public event MergeGroup
Occurs during mail merge when group/table processing.
Public event MergeImageField
Occurs during mail merge when an image merge field processing.
Top
See Also