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

[Solved] 2011 Q2 Mail Merge examples?

2 Answers 163 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Quincy
Top achievements
Rank 1
Quincy asked on 19 Jul 2011, 04:50 AM
Hi,

I can't seem to find any examples of the mail merge feature in the new release and there's no mention of this feature in the documentation.

Can you provide some examples on how to use this feature.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Quincy
Top achievements
Rank 1
answered on 19 Jul 2011, 05:30 AM
Don't worry, had a look in the code of the RichTextBox demo app.

Thanks.
0
Boby
Telerik team
answered on 21 Jul 2011, 09:07 AM
Hello Quincy,

Please excuse us for the missing documentation for this new feature; we are actively working on it. Data source that mail merge uses can be set by the MailMergeDataSource.ItemsSource property:

this.radRichTextBox.Document.MailMergeDataSource.ItemsSource = new List<Employee>() {...};
The merge fields can be inserted in the document using one of the overloads of the InsertField method of RadRichTextBox or RadDocument:
this.radRichTextBox.InsertField(new MergeField() { PropertyPath = "FirstName" });


Greetings,
Boby
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
RichTextBox
Asked by
Quincy
Top achievements
Rank 1
Answers by
Quincy
Top achievements
Rank 1
Boby
Telerik team
Share this question
or