public IMailMergeDataSource GetChildDataSource(string tableName)
{
switch (tableName)
{
// Get the child collection to merge it with the region provided with tableName variable.
case "Order":
return new OrderMailMergeDataSource(mCustomers[mRecordIndex].Orders);
default:
return null;
}
}
// ExEnd:GetChildDataSourceExample