Back to Devexpress

Office Module (Rich Text Editor, Spreadsheet Editor, PDF Viewer)

expressappframework-400003-document-management-office-module-office-module.md

latest5.8 KB
Original Source

Office Module (Rich Text Editor, Spreadsheet Editor, PDF Viewer)

  • Sep 25, 2025
  • 2 minutes to read

The Office Module integrates the following DevExpress controls into an XAF application:

PlatformRich Text EditorSpreadsheet EditorPDF Viewer
BlazorDxRichEditNot supportedDxPdfViewer
WinFormsRichEditControlSpreadsheetControlPdfViewer

Tip

Try out the Office Module in the MainDemo.NET.EFCore demo application that ships with XAF. Refer to Detail Views of the following business objects: Note (Rich Text Editor), Resume (PDF Viewer). You can find the demo in the following folder: %PUBLIC%\Documents\DevExpress Demos 25.2\Components\XAF\MainDemo.NET.EFCore.

Add the Office Module to Your Application

To enable the Office module in your application follow the steps below:

  1. Install NuGet packages that contain the Office module:
  1. Navigate to the MyApplication.Blazor.Server\Startup.cs file (for Blazor) or MyApplication.Win\Startup.cs file (for WinForms) and call the AddOffice (for Blazor) / AddOffice (for WinForms) method:

XAF offers other methods to integrate the Office Module into a newly created or existing application. For more information, refer to the following topic: Register a Built-in XAF Module.

Add and Customize Office Components

Refer to the following help topics for details on how to work with the office components:

Rich Text Editor

Spreadsheet Editor

PDF Viewer

Office Module Components

Modules

PlatformModuleNuGet package
Platform-agnosticOfficeModuleDevExpress.ExpressApp.Office
ASP.NET Core BlazorOfficeBlazorModuleDevExpress.ExpressApp.Office.Blazor
Windows FormsOfficeWindowsFormsModuleDevExpress.ExpressApp.Office.Win

On Linux, the Office Module for Blazor might need extra libraries: Use Office File API on Linux - Prerequisites.

Application Model Extensions

The Office Module extends the Application Model with the following properties:

|

Module

|

Extended node

|

Property

| | --- | --- | --- | |

OfficeModule

|

IModelMember

|

IModelRichTextFormatSettings.DocumentStorageFormat
IModelSpreadsheetPropertyEditorSettings.EnableFormulaBar

| |

OfficeWindowsFormsModule

|

IModelColumn

|

IModelRichTextColumn.CustomHeight

| |

IModelPropertyEditor

|

IModelWinOfficeMenuManagerSettings.MenuManagerType

|