Skip to main content linkedinfacebooktwittermenuarrow-up

Support for Mail Merge context - Community / GemBox.Document Feature Request - GemBox Support Center

37

Support for Mail Merge context Completed

Often when customizing mail merge using MailMerge.FieldMerging event there is a requirement to access the current record (which holds the value) or to access the parent / ancestor record if customizing nested mail merge.

Add following class to GemBox.Document:

 

public class MailMergeContext
{
int RecordNumber { get; }
int RecordCount { get; }
object Record { get; }
string RangeName { get; }
MailMergeContext ParentContext { get; }
}

Extend FieldMergingEventArgs with following properties:

 

object Record { get; }
MailMergeContext ParentContext { get; }

Official response

Mario - GemBox

Hi, This feature request has been implemented and is available in the latest versions of GemBox.Document. Regards, Mario