Class MailMergerContext
Namespace: Aspose.Words.LowCode
Assembly: Aspose.Words.dll (25.8.0)
Mail merge context.
public class MailMergerContext : ProcessorContextInheritance
object ← ProcessorContext ← MailMergerContext
Inherited Members
ProcessorContext.WarningCallback , ProcessorContext.FontSettings , ProcessorContext.LayoutOptions , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
MailMergerContext()
public MailMergerContext()Properties
MailMergeOptions
Mail merge options.
public MailMergeOptions MailMergeOptions { get; }Property Value
Methods
SetRegionsDataSource(DataTable)
Sets data source used to execute mail merge with regions.
public void SetRegionsDataSource(DataTable dataTable)Parameters
dataTable DataTable
Remarks
If both simple mail merge data source and data source for mail merge with regions are specified, mail merge with regions is executed first and then simple mail merge is executed.
SetRegionsDataSource(DataSet)
Sets data source used to execute mail merge with regions.
public void SetRegionsDataSource(DataSet dataSet)Parameters
dataSet DataSet
Remarks
If both simple mail merge data source and data source for mail merge with regions are specified, mail merge with regions is executed first and then simple mail merge is executed.
SetSimpleDataSource(string[], object[])
Sets data source used to execute simple mail merge.
public void SetSimpleDataSource(string[] fieldNames, object[] fieldValues)Parameters
fieldNames string
[]
fieldValues object
[]
Remarks
If both simple mail merge data source and data source for mail merge with regions are specified, mail merge with regions is executed first and then simple mail merge is executed.
SetSimpleDataSource(DataRow)
Sets data source used to execute simple mail merge.
public void SetSimpleDataSource(DataRow dataRow)Parameters
dataRow DataRow
Remarks
If both simple mail merge data source and data source for mail merge with regions are specified, mail merge with regions is executed first and then simple mail merge is executed.
SetSimpleDataSource(DataTable)
Sets data source used to execute simple mail merge.
public void SetSimpleDataSource(DataTable dataTable)Parameters
dataTable DataTable
Remarks
If both simple mail merge data source and data source for mail merge with regions are specified, mail merge with regions is executed first and then simple mail merge is executed.