This example adds a custom button to the Download menu on the File tab. Click this button to export an open document to a file (DOC format) and save it in the project folder.
Our Blazor Rich Text Editor supports the following document formats: DOCX, RTF, TXT, and HTML. You can use the RichEditDocumentServer component to import and export documents in DOC format. To add this component to your application, install the DevExpress.RichEdit.Core package.
The CustomizeRibbon event allows you to access and customize the Rich Text Editor's built-in ribbon UI. Call the AddCustomButton in the event handler to add a custom button to the ribbon. Execute the following actions in response to the click event to export the open document to a file (DOC format):
- Save the open document's content.
- Initialize a new instance of the RichEditDocumentServer class.
- Load document content to the document server.
- (Optional) Customize the document server's export options.
- Save the document to a file (DOC format).
- Use the downloadFileFromStream JS function to download the file.
(you will be redirected to DevExpress.com to submit your response)