WinForms Rich Editor

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.

Rich Editor Controls - Empty Fields

The following fields are supported:

Field CodeDescription
CREATEDATEThe date when the mail merge document was created
DateToday's date
DOCVARIABLEInserts a value of a document variable
HYPERLINKInserts a hyperlink
IFEvaluate arguments conditionally
INCLUDEPICTUREInsert a picture from a file
MERGEFIELDUsed for the mail merge feature
NUMPAGESTotal number of pages
PAGECurrent page number
SEQSequentially numbers user-defined items in a document
TCSpecifies the text and page number for a table of contents entry
TOCTable 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 Contents

Table of Figures is based on automatic sequential fields (SEQ) placed within paragraphs that are used to label figures or tables.

More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.