officefileapi-17488-word-processing-document-api.md
The Word Processing Document API is a non-visual .NET library that allows you to generate and process Microsoft® Word® documents across multiple platforms and operating systems. This library helps you automate such common tasks as file conversion, text formatting, document protection, mail merge, printing, and export to PDF/HTML.
Warning
The Office File API (Basic Edition), which included the Word Processing Document API and Excel Export API libraries, was discontinued on October 17, 2024. If you purchased a DevExpress Universal , DXperience , WinForms , WPF , Office File API , Reporting and ASP.NET subscription prior to October 17, 2024, our Office File API (Basic Edition) will remain available to you. If you are new to DevExpress and are interested in our Office File API, please refer to the following webpage for pricing/licensing information: DevExpress Office File API
If you own a license for the DevExpress Office File API Subscription or DevExpress Universal Subscription, you can use the following additional features within your word processing app:
If you are new to the Word Processing Document API, refer to the following topics first:
The Word Processing Document API allows you to create, access, modify, export, print, and remove the following document elements:
SectionsDivide your document into sections and specify individual page settings for each section.ParagraphsCreate new or remove existing paragraphs, and define paragraph formatting (alignment, line spacing, indentation, pagination options, background color, and so on).ListsCreate bulleted, numbered, or multilevel lists to arrange and outline information in your documents.TablesInsert tables to organize your information in rows and columns. You can change the table layout (split or merge cells, insert or delete rows and columns) and customize the appearance of the entire table or individual cells.Shapes and PicturesThe Word Processing Document API allows you to insert shapes and pictures. All shape types are supported: from simple lines and rectangles to 3D shapes with advanced effects.ChartsYou can create charts to visualize data in your documents. The Word Processing Document API supports a broad range of 2D and 3D charts: from the commonly used Column and Line charts to modern Excel 2016 charts (Box and Whisker, Histogram, Pareto, Waterfall, Treemap, Sunburst, and Funnel).Hyperlinks and BookmarksInsert hyperlinks to navigate to web pages and existing files. Create bookmarks and add links to them to jump to specific locations within your document.Headers and FootersAdd headers and footers to your documents to repeat specific information (such as titles, authors, and page numbers) at the top and bottom of each page.Footnotes and EndnotesUse footnotes and endnotes to add supplemental notes, comments, and citations to text in your documents. Footnotes appear at the bottom of the page, and endnotes come at the end of the document or section.WatermarksThe Word Processing Document API allows you to insert picture and text watermarks, specify watermark options, and delete existing watermarks from a document.Content ControlsYou can add content controls to your documents to create surveys and fillable forms. These controls are interactive, so you can input and select date as needed. You can also export documents with content controls to fillable PDF forms.OLE ObjectsThe Word Processing Document API supports OLE (Object Linking and Embedding) technology that allows you to insert data (spreadsheets, images, presentations, charts, equations, and so on) from external applications into your document.ActiveX ControlsThe Word Processing Document API allows you to access existing ActiveX controls, obtain their properties (type, name, and ProgID), or remove these controls from a document.
You can create, load, convert, merge, split, edit, print, and save documents in code. The Word Processing Document API supports left-to-right and right-to-left document layouts.
Use Mail Merge to automate document generation. Create a template with value placeholders and bind this template to an external data source to generate multiple documents. The Word Processing Document API has a set of events that allow you to control the Mail Merge process at every stage.
You can use fields to insert dynamic content (such as RSS feed, text, images, or barcodes) into a document. Fields are automatically updated when the document is saved, printed, or when a mail merge operation is executed.
The Word Processing Document API ships with the following format features:
Format document text. Change individual format attributes (font settings, character style, background and foreground colors) for any text fragment. You can also create character and paragraph styles to specify multiple format attributes simultaneously and apply the same formatting to different parts of your text.
Change the page layout. Configure settings like page orientation, paper size, and margins, divide a page into columns, and insert page breaks. You can apply separate layout settings to the first page, and hide its header and footer to start numbering from the second page.
Insert a table of contents. Mark specific parts of your document as table entries and use the TOC field to build the table of contents.
Enable word hyphenation. Embed different dictionaries to automatically hyphenate text.
The Word Processing Document API allows you to protect your documents to prevent unauthorized access. Security options include:
The Word Processing Document API offers the following collaboration options:
In addition to Office File API, DevExpress offers a wide variety of UI Controls for desktop platforms (WinForms, WPF) and the web (Blazor, ASP.NET Core, JavaScript, Web Forms, MVC). DevExpress UI controls seamlessly integrate into your projects and help you craft visually stunning and user-friendly applications. With a wide array of controls at your disposal, from data grids to responsive layouts and data visualization tools, you can build applications that meet and exceed user expectations.
In particular, Rich Text Editor UI Controls are available for WinForms, WPF, ASP.NET Core, ASP.NET Web Forms, and ASP.NET MVC.
If you need UI Controls for a specific platform, give the following DevExpress subscriptions a try:
If you develop applications for multiple .NET / JavaScript platforms or you are interested in additional products DevExpress has to offer, refer to following link to get more information on our bigger bundle - DevExpress Universal subscription. This subscription includes Office File API, all DevExpress UI Controls for .NET / JavaScript, and several additional products for cross-platform development.
If you haven’t yet done so, download our fully-functional 30-day trial version and try out DevExpress controls and libraries in your projects: