Hi
Emmanuelli,
By default, the data source of the merge fields is merged as plain text (using the current formatting). You can, however, create custom type of merge fields by inheriting MergeField class and overriding GetResultFragment method. This method returns DocumentFragment, which means that you can apply the desired formatting and inlude more than one paragraph (i.e. the new lines). Similar approach is demonstrated in
this forum thread. Following is a sample implementation of the GetResultFragment method:
You can insert such fields using the RadRichTextBox/RadDocumentEditor's InsertField method:
Don't hesitate to contact us if you have other questions.
Regards,
Boby
Telerik
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time.
Watch the videos and start improving your app based on facts, not hunches.