[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Grid View
  [Expand]Tree List
  [Expand]Card View
  [Expand]Reporting
  [Expand]Chart Control
  [Expand]Pivot Grid
  [Expand]Spreadsheet
  [Collapse]Rich Text Editor
   [Expand]Product Information
    Getting Started
   [Collapse]Concepts
     ASPxRichEdit Control
    [Expand]Document
     Supported Document Formats and Printing
     Import and Export
     Formatting Characters
     Formatting Paragraphs
     AutoCorrect
    [Expand]Fields
     Mail Merge
     Simple View
     Table of Contents
     Restrictions
     Spell Checking
    [Expand]Client API
    [Expand]Built-in Dialogs
     Adaptivity
     HTML Tag Interpretation
     Keyboard Shortcuts
   [Expand]Examples
  [Expand]Scheduler
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Gauges
  [Expand]Vertical Grid
  [Expand]Data Editors
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Controls
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Supported Document Formats and Printing

This topic describes the Rich Edit control's supported document formats and how to print documents.

Expanded Contents

Expanded Supported Document Formats

The DevExpress ASP.NET Rich Edit control allows you to open and save documents in different formats.

  • End-users can specify a document's format using the Rich Edit's UI. See the ASPxRichEdit: Load and Save online demo.

  • You can specify a document's format using server or client methods with the DocumentFormat parameter. See the Import and Export topic for details on how to open and save documents programmatically.

The ASPxRichEdit control supports the following file extensions:

  • Office Open XML format (aka MS Office 2007 or DOCX)
  • Microsoft Word 97-2003 format (DOC)
  • Rich Text Format (RTF)
  • Plain Text (TXT)
  • HyperText markup language (HTML)
  • Web page archive format (MHTML)
  • OpenDocument format (ODT, implemented by the OpenOffice.org office suite)
  • WordML format (XML)
  • Electronic Publication (EPUB)
  • Portable document format (PDF - programmatic export only)
    RichEdit exports documents to PDF using the DevExpress PDF exporting server engine. The server engine's document layout differs from the RichEdit's client document layout, so, the layout in the resulting PDF file may not be the same as in the RichEdit.
    See demo: Export to PDF | Learn more...

You also can open DOT (DOTX) files if you open the file as regular DOC (DOCX) documents as shown in the code snippet below. However, we recommend that you convert template documents to the DOC or DOCX format.

Expanded Printing

The ASPxRichEdit allows you to print documents by invoking a browser-specific Print dialog.

  • End-users can invoke the dialog via the control's UI or by pressing CTRL + P

  • You can invoke the dialog programmatically using the client-side RichEditCommands.filePrint command.

Document printing in RichEdit is performed in two stages:

  • Exporting the active document to PDF;
  • Printing the PDF document through a client browser's dialog.

You can disable the printing functionality using Operation Restrictions by setting the ASPxRichEditBehaviorSettings.Printing property to Disabled or Hidden.

Expanded See Also

Is this topic helpful?​​​​​​​