Document Server and Automation Features
Document Server
RichEditDocumentServer is a word processing engine developed to automate common word processing tasks. It is the non-visual equivalent of the RichEdit control, with complete functionality available via its API. Typical applications include conversion, editing and modification of different document types and formats (RTF, DOCX, DOC, XML, HTML, MHT, ODT, EPUB, and TXT formats are supported).
The Document Server can also be used to create mail merge or reporting server solutions.
Field Support
The XtraRichEdit supports Microsoft Word® style fields.
These fields are data placeholders that allow you to create documents with dynamic data. For instance, if you want today's date to be inserted into a document, you don't have to update the document each and every day.
You can insert fields by pressing a toolbar button or using the CTRL+F9 shortcut. As a result you get an empty field wherein you can write a field code that will insert data into the placeholder.

The following fields are supported:
| Field Code | Description |
| CREATEDATE | The date when the mail merge document was created |
| Date | Today's date |
| DOCVARIABLE | Inserts a value of a document variable |
| HYPERLINK | Inserts a hyperlink |
| IF | Evaluate arguments conditionally |
| INCLUDEPICTURE | Insert a picture from a file |
| MERGEFIELD | Used for the mail merge feature |
| NUMPAGES | Total number of pages |
| PAGE | Current page number |
| SEQ | Sequentially numbers user-defined items in a document |
| TC | Specifies the text and page number for a table of contents entry |
| TOC | Table of contents |
You can enter a field code with parameters and then you can see the resulting value by choosing Toggle Field Codes from the context menu.
As you can see, there's also a command to update a field value.

Document Variables
Each document has a collection of variables. Their values can be inserted into the document using DOCVARIABLE fields.
A special event fires when a DOCVARIABLE field is updated, allowing you to handle the event and provide custom content for display purposes.
By using merge fields and document variable fields in combination with the RichEditDocumentServer, you can create master-detail reports.
Automatic Table of Contents
You can quickly set up automatic Table of Contents (TOC) for the entire document or a section, or produce an automated Table of Figures.
Built-in styles, paragraph outline levels or TC fields can be used to build your Table of Contents.
  Table of Figures is based on automatic sequential fields (SEQ) placed within paragraphs that are used to label figures or tables.
|