Office Module
- 3 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
- ASP.NET Spreadsheet
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 20.2\Components.NET Core Desktop Libraries\eXpressApp Framework\FeatureCenter folder.
Note
Until the Office Module supports Blazor UI, it is possible to implement this functionality manually. The following example demonstrates how to integrate the ASP.NET client RichEdit control into your Blazor application: Blazor - How to edit rich text documents stored using the Office Module.
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, which uses the ASPxRichEdit control 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.
See Also
- How to: Access the Rich Text Editor Controls
- How to: Customize the Rich Text Editors
- Ways to Improve the Performance of ASP.NET Office Module Editors
Spreadsheet Editor
The Office Module provides two platform-specific Property Editors:
- the SpreadsheetPropertyEditor, which uses the SpreadsheetControl in WinForms applications
- the ASPxSpreadsheetPropertyEditor, which uses the ASPxSpreadsheet control in ASP.NET applications
These editors allow end-users to edit spreadsheet documents.
See Also
- How to: Access the Spreadsheet Editor Controls
- How to: Customize the Spreadsheet Editors
- Ways to Improve the Performance of ASP.NET Office Module Editors
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 | Extending node | Property |
---|---|---|---|
OfficeModule | |||
OfficeWindowsFormsModule | |||
OfficeAspNetModule | |||