This is a migrated thread and some comments may be shown as answers.

Handling One to Many relation in Mail Merge of radrichtextbox Question

1 Answer 81 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Rizwan
Top achievements
Rank 1
Rizwan asked on 02 Aug 2012, 04:54 AM
Sir,

I have a situation where i want to handle Handling One to Many relation in Mail Merge of radrichtextbox.

e.g

 

 

public class Employee

 { 

public string FirstName { get; set; }  

public string LastName { get; set; }  

public string JobTitle { get; set; }  

public List<Address> EmpAddress { get; set; }  

}

 

public class Address  

public string Addresses { get; set; }  

}

How i will handle this situation in the case of Mail Merge. Where i want to show one employee with its multiple addresses in the table in the mail merge.

Thanks
Rizwan

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 03 Aug 2012, 04:05 PM
Hi Rizwan,

The default merge fields do not enable one-to-many relationship out of the box. However, you can implement custom merge fields as described in this forum post:  http://www.telerik.com/community/forums/wpf/richtextbox/merge-reports.aspx#1943265. There is also a demo attached to the reply, which you can download and test.

I hope this answers your question.

Kind regards,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
Rizwan
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or