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.
CodeExamples (VB: CodeExamples)
- Basic Actions
- Document Elements
- Hyperlinks and Bookmarks
- Custom XML Parts
- Document Properties
- Export
- Document Conversion
- Fields
- Formatting
- Content Controls
- Headers and Footers
- Import and Export
- Lists
- Footnotes and Endnotes
- Page Layout
- Protection
- Printing
- Shapes
- Styles
- Tables
- Watermarks
(you will be redirected to DevExpress.com to submit your response)