Skip to content

Use the Word Processing Document API to manage rich text documents in code.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/word-document-api-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Word Processing Document API – How to Process Word Documents in Code

The Word Processing Document API is a non-visual .NET library that allows you to generate, load, modify, import, export, and print Microsoft Word documents in code.

Important

The Universal Subscription or an additional Office File API Subscription is required to use this example in production code. For pricing information, please refer to the DevExpress Subscription page.

This example demonstrates how to use the Word Processing Document API to execute the following actions:

  • Create, load, merge, split, save, and print documents
  • Save a document in PDF and HTML formats
  • Convert an HTML file to PDF and DOCX formats
  • Format a document
  • Manage document elements (paragraphs, lists, tables, shapes, pictures, headers, footers, notes, watermarks, bookmarks, hyperlinks, and comments)
  • Insert and modify fields
  • Configure page layout settings
  • Specify the built-in and custom document properties
  • Protect and unprotect a document
  • Create character, paragraph, and linked styles
  • Import formatted text to a document
  • Add checkbox form fields to a document
  • Embed arbitrary XML data (custom XML parts) in a document
  • Create, edit, and remove content controls
  • Obtain and clear VBA macrosd

The application’s form contains the list of supported operations and the editor that displays the code of these operations. Users can select an operation to view its code and click the Run button to open the resulting document in Microsoft Word.

Word Processing Document API - List of Supported Operations

Files to Look At

CodeExamples (VB: CodeExamples)

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)