I would like an example how to code (C#) and construct a mail merge document based on the following requirements:
- one object passed to the MailMerge function which has multiple properties that are all Collections/Lists types
- each item in any list may have nested Collections/Lists
- all nested Collections/Lists and parent Collections/Lists should be populated into the document
If I pass this object to the ExecuteNestedGroup method as part of a MailMergeDataTable, the first table or group populates correctly from the appropriate Collection but the second table or group throws a NullReferenceException.
The syntax of my current mail merge document appears as:
<<BeginGroup:DataSource>>
<TableStart:Collection1>>
<<property>>
<<TableStart:property2>>
<<nested_property>>
<<TableEnd:property2>>
<TableEnd:Collection1>>
<TableStart:Collection2>>
<<property3>>
<TableEnd:Collection2>>
<<EndGroup:DataSource>>