private IEnumerable GetDynamicMailMergeDataSource() { List <DynamicDataObject> mailMergeSource = new List <DynamicDataObject>(); DynamicDataObject data = new DynamicDataObject(); data.Set("FirstName", "Andrew"); data.Set("LastName", "Fuller"); data.Set("CompanyName", "Mobile Phone Factory"); data.Set("PurchasedItemsCount", 500); data.Set("ProductName", "mobile phones"); data.Set("ProductSupportPhone", "skype: MobilePhoneFactorySupport"); data.Set("ProductSupportPhoneAvailability", "24/7"); data.Set("ProductSupportEmail", "*****@*****.**"); data.Set("SalesRepFirstName", "Nancy"); data.Set("SalesRepLastName", "Davolio"); data.Set("SalesRepTitle", "Sales Associate"); mailMergeSource.Add(data); data = new DynamicDataObject(); data.Set("FirstName", "Margaret"); data.Set("LastName", "Peacock"); data.Set("CompanyName", "Mobile Phone Factory Japan"); data.Set("PurchasedItemsCount", 1200); data.Set("ProductName", "mobile phones"); data.Set("ProductSupportPhone", "skype: MobilePhoneFactorySupportJapan"); data.Set("ProductSupportPhoneAvailability", "24/7"); data.Set("ProductSupportEmail", "*****@*****.**"); data.Set("SalesRepFirstName", "Asako"); data.Set("SalesRepLastName", "Hoshi"); data.Set("SalesRepTitle", "Sales Associate"); mailMergeSource.Add(data); return(mailMergeSource); }
private IEnumerable GetDynamicMailMergeDataSource() { List<DynamicDataObject> mailMergeSource = new List<DynamicDataObject>(); DynamicDataObject data = new DynamicDataObject(); data.Set("FirstName", "Andrew"); data.Set("LastName", "Fuller"); data.Set("CompanyName", "Mobile Phone Factory"); data.Set("PurchasedItemsCount", 500); data.Set("ProductName", "mobile phones"); data.Set("ProductSupportPhone", "skype: MobilePhoneFactorySupport"); data.Set("ProductSupportPhoneAvailability", "24/7"); data.Set("ProductSupportEmail", "*****@*****.**"); data.Set("SalesRepFirstName", "Nancy"); data.Set("SalesRepLastName", "Davolio"); data.Set("SalesRepTitle", "Sales Associate"); mailMergeSource.Add(data); data = new DynamicDataObject(); data.Set("FirstName", "Margaret"); data.Set("LastName", "Peacock"); data.Set("CompanyName", "Mobile Phone Factory Japan"); data.Set("PurchasedItemsCount", 1200); data.Set("ProductName", "mobile phones"); data.Set("ProductSupportPhone", "skype: MobilePhoneFactorySupportJapan"); data.Set("ProductSupportPhoneAvailability", "24/7"); data.Set("ProductSupportEmail", "*****@*****.**"); data.Set("SalesRepFirstName", "Asako"); data.Set("SalesRepLastName", "Hoshi"); data.Set("SalesRepTitle", "Sales Associate"); mailMergeSource.Add(data); return mailMergeSource; }