Example T418535
Visible to All Users

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)

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.