[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Collapse]Office File API
  Demo Application
  Redistribution and Deployment
 [Expand]Spreadsheet Document API
 [Collapse]Word Processing Document API
   Getting Started
  [Expand]WordProcessing Document
  [Expand]Merge and Split Documents
   Import and Export
   Text Formatting
  [Expand]Mail Merge
   Export to PDF
   Document Protection
   HTML Tag Support
 [Expand]PDF Document API
 [Expand]Excel Export Library
 [Expand]Snap Report API
 [Expand]Zip Compression and Archive API
 [Expand]Barcode Generation API
 [Expand]Unit Conversion API
 [Expand]API Reference
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Word Processing Document API

The Word Processing Document API is a non-visual .NET library used to automate frequent word processing tasks (format conversion, document editing , mail merge, print and export to PDF, etc.).


The Word Processing Document API does not require the DevExpress.Docs.v19.1.dll assembly for operation and distribution. A separate license is not required.

The Word (RTF) Document API's main features are:

Expanded Import and Export

Create, load, convert and save documents to popular file formats:

  • Plain Text
  • RTF (Rich Text Format)
  • DOCX (Microsoft Office 2007 - ... format)
  • DOC (Microsoft Word 97-2003 format)
  • WordML format (MS Office Word 2003 XML format)
  • OpenDocument (implemented by the OpenOffice.org office suite)
  • HTML
  • MHTML (web page archive format)
  • EPUB (Electronic Publication)
  • PDF format (export only)

Expanded Right-To-Left Support

You can load, edit, save, print and export (to PDF) documents with the right-to-left text direction.

Expanded Document Basics

  • Combine multiple documents into a single file.
  • Select a specific document part (text range, paragraph, etc.), save it as a separate file or insert it in another document.
  • Print documents with the default or custom print settings.

Expanded Text Formatting Features

  • Format characters: change the font, font size, character style (bold, italics, underlined and strike-through), background and foreground colors.

    Paragraph format options include alignment, indentation, text direction, and line spacing.

  • Create and modify bulleted, numbered and multi-level lists.
  • Apply paragraph and character-based styles.
  • Insert images in popular formats: JPEG, JPG, PNG, GIF, BMP, TIF, TIFF, WMF, EMF, and DIB.
  • Create, move, resize and rotate drawing objects.
  • Insert and modify Hyperlinks and Bookmarks.
  • Create and adjust checkboxes.
  • Perform table operations: insert tables, rows and columns, edit the table layout, split and merge cells, align cell content, change borders and shading to individual cells, and delete cells, columns and rows.

Expanded Mail Merge

  • Create a document template for letters, catalogs, mailing labels and personalize any kind of document using the Mail Merge feature.
  • Nest master and detail templates within the basic merge template to create a Master-Detail Report. Use this feature to create catalogs, header/detail invoices or statements.

Expanded Field Support

  • The Word Processing Document API supports a subset of fields defined in the ECMA-376 (Office OpenXML) standard, including the DOCVARIABLE field.

Expanded Document Layout

  • Parse the document into different Sections with individual page settings.
  • Split text in multiple columns within a particular section.
  • Specify different Headers and Footers for the first page, odd and even pages, and each section. Insert the current page number and the total number of pages.
  • Add line numbers to document margins for certain types of legal documents. Line numbers can run continuously throughout the document, restart on each page or section, or be suppressed for a specific paragraph.

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