Skip to main content facebooktwittermenuarrow-up

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

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; }

Comment (1)

Mario - GemBox

This feature request has been implemented and is available in latest versions of GemBox.Document.


GemBox d.o.o.