Office Module Overview
- 2 minutes to read
The Office Module simplifies the integration of DevExpress Rich Text Editor control to WinForms XAF applications and provides the Mail Merge support.
Tip
You can see a demonstration of the Office Module in the Property Editors and Reports section of the Feature Center demo that is shipped with XAF. This demo is installed in the %PUBLIC%\Documents\DevExpress Demos 18.2\Components\eXpressApp Framework\FeatureCenter folder, by default.
Office Module Capabilities
The Office Module provides the RichTextPropertyEditor Property Editor. This editor uses the RichEditControl to edit rich text documents in different formats.
You can also create Mail Merge templates to generate documents based on data from your application database.
Add the Office Module
To use the module, add the OfficeWindowsFormsModule component to your WinForms application project in the Application Designer.
Note
You can add a module in the Solution Wizard when creating a new XAF solution by selecting a module 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 as follows:
- adds the DocumentStorageFormat property to the IModelMember node;
- adds the MenuManagerType property to the IModelPropertyEditor node;
- adds the CustomHeight property to the IModelColumn node.