Hi Alexander,
Depending on your requirements, it may turn out that
Standalone Reporting Designer could help you. It is a standalone desktop application (it can also be started from your main application), which will allow power users to generate report templates, which can produce documents based on data source. These reports can then be exported to different document formats.
If you decide to stick to RadRichTextBox: I would suggest you to use
custom annotations to mark regions in the document, and then manually do synchronizations between the data source and the document - for example on RadRichTextBox.DocumentContentChanged event, iterate over all annotations, get the text in the annotation range and update the data source and the forms. And vise versa - when the text in the form is updated (or the focus is lost), get the particular annotation and update its text.
You can further use
protection ranges to protect parts of the document from editing. This is also demonstrated in the
Document Protection online demo.
Fields are more useful when the end user should have the ability to modify the evaluation of a range - for example, if a DATE field is added to the document, the end user can go to Code display mode, and add a switch '
\@ "d, yyyy"' to modify the date format.
Regards,
Boby
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.