Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Collapse]Rich Text Editor
    Overview
   [Collapse]Getting Started
     How to: Create a Simple Word Processor with a Bar UI
     How to: Create a Simple Word Processor with a Ribbon UI
     How to: Use the Template Gallery to Create a Simple Word Processor
     How to: Get Started with the Rich Edit Document Server
   [Expand]Fundamentals
   [Expand]Concepts
   [Expand]Visual Elements
   [Expand]Examples
   [Expand]Member Tables
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Get Started with the Rich Edit Document Server

This tutorial describes how to get started with the non-visual RichEditDocumentServer component, which implements the complete word-processing functionality available using its API.

  1. Start Visual Studio and create a new project by selecting FILE | New | Project… in the main menu. In the invoked New Project dialog, select Console Application, specify the project name and location, and click OK.

  2. In the Solution Explorer, right-click the References node and select Add Reference... in the context menu.

  3. In the invoked Reference Manager dialog, add references to the following libraries.

    • DevExpress.Data.v17.1.dll
    • DevExpress.Office.v17.1.Core.dll
    • DevExpress.RichEdit.v17.1.Core.dll
    Note

    To follow this example, you should also include a reference to the System.Drawing.dll library, since the code example below uses the Color.FromArgb method to set the font color of the specified text.

  4. Paste the code listed below in the Main method of the Program.cs file (or the Main procedure of the Module1.vb file for Visual Basic). This example creates and saves the RichEditDocumentServerTest.docx file, and opens it in the default application registered for this file type.

  5. Run the project.

The following image demonstrates the file generated after executing the code above (the document is opened in Microsoft® Word®).

How would you rate this topic?​​​​​​​