Office Module Overview
- 2 minutes to read
The Office Module integrates the following DevExpress controls into an XAF application:
- WinForms Rich Text Editor with Mail Merge support
- ASP.NET Rich Text Editor with Mail Merge support
- WinForms Spreadsheet
Important
In XAF, the ASP.NET Rich Text Editor and WinForms Spreadsheet support is currently in the Beta stage.
Tip
You can see a demonstration of the Office Module in the Property Editors and Reports sections of the Feature Center demo installed in the %PUBLIC%\Documents\DevExpress Demos 19.1\Components\eXpressApp Framework\FeatureCenter folder.
Office Module Capabilities
Rich Text Editor
The Office Module provides two platform-specific Property Editors:
- the RichTextPropertyEditor, which uses the RichEditControl in WinForms applications
- the ASPxRichTextPropertyEditor (Beta), which uses the ASPxRichEdit in ASP.NET applications
These editors allow end-users to edit rich text documents stored in different formats.
You can also create Mail Merge templates to generate documents based on data from your application database.
Spreadsheet Editor
The Office Module provides the SpreadsheetPropertyEditor (Beta), which uses the SpreadsheetControl to edit spreadsheet documents.

Office Module Components
The Office Module consists of the following components:
- OfficeModule - the platform-agnostic module. Use the Module Designer to add this module to your project.
- OfficeWindowsFormsModule - the WinForms-specific module. Use the Application Designer to add this module to your WinForms application.
- OfficeAspNetModule - the ASP.NET-specific module. Use the Application Designer to add this module to your ASP.NET application.

Note
You can add modules to your application when you create a new XAF solution using the Solution Wizard. To do this, select modules in the Choose Extra Modules step.
- To add an extra module in code, add it to the XafApplication.Modules or ModuleBase.RequiredModuleTypes list (adding a reference to the module assembly is insufficient).
Application Model Extensions
The Office Module extends the Application Model with the following properties:
Module | Extended node | Property |
|---|---|---|
OfficeModule | ||
OfficeWindowsFormsModule | ||
OfficeAspNetModule | ||



