The .NET Word Library is a feature-rich and high-performance library that allows you to add advanced Word document processing functionalities to any .NET application. It allows you to create, read, and edit Word documents programmatically without Microsoft Office or interop dependencies. It allows you to create complex reports by merging data from various data sources using its powerful mail merge engine. This library also provides functionalities for merging, splitting, organizing Word documents, and finding and replacing text with ease.
Optimized for a server environment where speed and low memory usage are critical, DocIO works much faster and consumes less memory when compared to Office automation libraries.
There are no distribution fees, per-server licensing fees, or royalties, making DocIO very cost-effective.
All the elements of a typical Word document like text, formatting, images, tables, sections, headers, and footers are accessible through a comprehensive set of APIs. It only takes a few lines of code to create or manipulate richly formatted Word documents.
Create, read, and edit popular text file formats like DOC, DOT, DOCM, DOTM, DOCX, DOTX, HTML, RTF, TXT, and XML (WordML). Convert Word documents to PDF, image (PNG, BMP, JPEG, EMF, TIFF), ODT, and EPUB files.
Design reports using Microsoft Word and uses DocIO to dynamically populate them with data. The final report then can be saved to a Word file or exported to other supported formats like PDF.
Performs mail merge by repeating the entire document automatically for every record in the data source. Multiple documents can also be created from a Word template.
Performs mail merge by repeating a particular region of the document automatically for every record in the data source.
Generates complex reports by repeating nested region of document with relational data.
Populate the template Word document with data from common data sources like arrays, ADO.NET objects, IEnumerable collection, dynamic objects, and XML.
Format the merged text, numeric values, and date-times automatically with the help of field switches.
When the prefix “image:” is added to the merge field name, it places the image in the place of the merge field.
Customize a document during mail merge by formatting and editing the merged text, numeric and image data with mail merge events, and also the layout of the document by inserting breaks.
The library supports intuitive options like mapping merge fields with fields in a data source; retrieving merge field names; and removing merge fields that are not merged, empty paragraphs, and empty groups.
For more information, check out our mail merge features.
Organize document contents with sections for grouping contents and making the contents start on a new page, odd page, even page, or continue on the same page.
Add information like title, author, branding, or page number to the header or footer repeat it at the top or bottom of every page. Use any header and footer type, such as different first page and different odd and even pages.
Create or edit documents in any supported language. Use left-to-right and right-to-left text, also.
Insert images in a document with all the common layout options like text wrapping, position, and size. Use all common image formats: PNG, BMP, JPEG, TIFF, GIF, EMF, WMF, SVG, etc.
Create and insert bookmarks to identify a part of the document for future reference.
Create a link in a document for quick access to webpages, files, email, bookmarks, etc.
Add dynamic information like title, time, and page number in a Word document that updates automatically. Update commonly used fields like merge field, IF field, date-time, page number, document properties, etc.
Showcase important text or quotes in a document within a text box. Insert and edit text, and format and remove a text box.
Add all the predefined shapes in Word Open XML format documents (DOCX, DOTX, DOCM, DOTM, Word XML). Insert and edit text, and format and remove an existing shape.
Graphically represent a set of data with common chart types like column, line, pie, and bar in Word Open XML format documents (DOCX, DOTX, DOCM, DOTM, Word XML). Add and modify data, title, axes, data labels, legends, trendlines, etc., and format and remove an existing chart.
Embed any common file format within a Word document. Extract the embedded OLE object data from a Word document and save its native file format.
Additional information like detailed descriptions, references, or credits can be added at the end of each page and document. Edit and remove a note from a document.
Read and write document information with built-in document properties. Use custom document properties and document variables.
Create accessible Word documents with 508 standard compliance with directly accessible elements like text and tables and set alternate text for all graphical elements like images, text boxes, shapes, and charts.
Customize the appearance of the text with several text-level formatting options: font family, size, style, underline, strikethrough, text color, highlight, subscript, superscript, etc.
Customize the appearance of a paragraph with several paragraph-level formatting options: indents, alignment, spacing, tab stops, text direction, etc.
Organize items or create an outline of the document with bullets and numbering ranging from single-level to multilevel lists.
Design the structure and layout of document pages with several properties like size, margins, orientation, columns, line numbers, borders, page background, watermarks, etc.
Create and apply styles to ensure consistency within a document. Use predefined and custom character styles, paragraph styles, and predefined table styles.
Create, insert, and delete tables in a document. Use nested tables, also.
Edit an existing table in a document like by merging cells, adding or removing cells and rows, and resizing cells.
Format a table with several properties: indent, alignment, cell margins and spacing, borders, shadings, repeat header row, break row across pages, etc.
Give a polished look to tables by applying built-in styles and conditional styling options like first row, last row, banded rows, first column, last column, and banded columns.
Copy part of a document and insert that part into the same or a different document with several formatting options like using destination styles and keeping source formatting. Use all the common paste options like in Microsoft Word.
Navigate to a bookmark in the document and insert, edit, retrieve, or delete its content. Also replace the bookmarked contents with text, a part of a document, or an entire document.
Merge multiple documents into a single document with several formatting options like using destination styles or keeping source formatting.
Split a document into multiple small documents based on sections, placeholder text, or any document element.
Find text by matching whole words, then highlight or format it. Also, find text patterns using regular expressions.
Replace the text or text pattern with another text, a part of a document, or an entire document. Retain source or target formatting.
Create, insert, and edit a table of contents (TOC) to outline the contents of a document. Update or rebuild the TOC after modifying a Word document. Build TOC based on heading and custom styles, including page numbers, and hyperlink for easy navigation.
Create and insert content controls like plain text, rich text, pictures, checkboxes, combo boxes, dropdown lists, and date pickers in the Word Open XML format documents (DOCX, DOTX, DOCM, DOTM, Word XML). Group a part of a document with block content control.
Protect the content of a content control from being edited by locking its content. Also prevent deleting a content control from the document.
Bind content controls to an element in the custom XML part that is embedded in a document.
Encrypt a Word document with a password and open an encrypted Word document with a valid password.
Restrict edit permissions for specific content in a Word document, and control what type of changes can be made to the document.
Create fillable forms with legacy form fields in Word documents. Fill the form fields and extract filled data from the form fields effortlessly.
Create more functional forms with content controls like plain text, rich text, pictures, checkboxes, combo boxes, dropdown lists, and date pickers in Word Open XML format documents. Fill the form and extract filled data from the content controls effortlessly.
Create and insert comments in a document to add notes about a part of the document while reviewing. Also, edit and remove an existing comment from a document.
Accept and reject changes that are tracked within a Word document.
Document Content Features | WORD 97-2003 | WORD 2007-2016 | RTF |
---|---|---|---|
Create a Word document from scratch or edit an existing Word document. | ![]() |
![]() |
![]() |
Open an existing Word document from file system or stream. | ![]() |
![]() |
![]() |
Save the Word document to file system, stream, or stream it to the client browser. | ![]() |
![]() |
![]() |
Create, access, and modify paragraphs and text. | ![]() |
![]() |
![]() |
Create, access, and modify tables, rows, and cells. | ![]() |
![]() |
![]() |
Create, access, and modify hyperlinks. | ![]() |
![]() |
![]() |
Create, access, and modify bookmarks. | ![]() |
![]() |
![]() |
Access, create, and modify document sections, headers, and footers. | ![]() |
![]() |
![]() |
Find and replace text. | ![]() |
![]() |
![]() |
Iterate over document content. | ![]() |
![]() |
![]() |
Copy and move document elements between documents. | ![]() |
![]() |
![]() |
Merge multiple Word documents. | ![]() |
![]() |
![]() |
Create, access, and modify table of contents. | ![]() |
![]() |
![]() |
Rebuild and update table of contents. | ![]() |
![]() |
![]() |
Create, access, and modify fields. | ![]() |
![]() |
![]() |
Update fields such as IF, Formula, and other popular field types. | ![]() |
![]() |
![]() |
Support for inserting watermarks. | ![]() |
![]() |
![]() |
Create, access, and modify comments. | ![]() |
![]() |
![]() |
Access and modify built-in document properties. | ![]() |
![]() |
![]() |
Access and modify custom document properties. | ![]() |
![]() |
![]() |
Encrypt documents and open password-protected documents. | ![]() |
![]() |
![]() |
Specify document protection to control the type of changes. | ![]() |
![]() |
![]() |
Create, access, and modify form fields. | ![]() |
![]() |
![]() |
Create, access, and modify footnotes and endnotes. | ![]() |
![]() |
![]() |
Create, access, and modify structured document tags (content controls). | - | ![]() |
- |
Bind content controls to custom XML parts (XML mapping). | - | ![]() |
- |
Accept or delete a particular revision or all the revisions in a document. | ![]() |
![]() |
![]() |
Create, access, and modify OLE objects from the document. | ![]() |
![]() |
![]() |
Support for inserting HTML text. | ![]() |
![]() |
![]() |
Mail Merge | WORD 97-2003 | WORD 2007-2016 | RTF |
---|---|---|---|
Create, access, and modify merge fields. | ![]() |
![]() |
![]() |
Retrieve mail merge field names. | ![]() |
![]() |
![]() |
Insert images during mail merge. | ![]() |
![]() |
![]() |
Event handling during mail merge process to apply formatting. | ![]() |
![]() |
![]() |
Perform mail merge on documents that contain complex merge fields. | ![]() |
![]() |
![]() |
Perform mail merge for a specified region. | ![]() |
![]() |
![]() |
Perform mail merge on reports that contain relational details (parent-child data). | ![]() |
![]() |
![]() |
Perform mail merge from any .NET data source such as string array, DataSet, DataTable, DataView, DataReader. | ![]() |
![]() |
![]() |
Perform mail merge from any data source such as IEnumerable collection and dynamic objects. | ![]() |
![]() |
![]() |
Document Formatting | WORD 97-2003 | WORD 2007-2016 | RTF |
---|---|---|---|
Support for character formatting including font size, font color, font name, bold, italic, underline, etc. | ![]() |
![]() |
![]() |
Support for paragraph formatting including line spacing, alignment, indentation, spacing before and after, keep follow, etc. | ![]() |
![]() |
![]() |
Support for bulleted and numbered lists formatting including numbering and levels. | ![]() |
![]() |
![]() |
Support for table formatting including alignment, borders, and shading. | ![]() |
![]() |
![]() |
Access and modify all section properties including paper size, margins, and orientation. | ![]() |
![]() |
![]() |
Access, create, and modify paragraph styles. | ![]() |
![]() |
![]() |
Support for applying predefined table styles. | ![]() |
![]() |
![]() |
Find and Replace | WORD 97-2003 | WORD 2007-2016 | RTF |
---|---|---|---|
Find a specific word or phrase. | ![]() |
![]() |
![]() |
Find a specified pattern using a regular expression. | ![]() |
![]() |
![]() |
Replace text with another text or part of a document’s contents. | ![]() |
![]() |
![]() |
Replace text while retaining the same formatting. | ![]() |
![]() |
![]() |
Bookmarks | WORD 97-2003 | WORD 2007-2016 | RTF |
---|---|---|---|
Create and manipulate bookmarks. | ![]() |
![]() |
![]() |
Navigate to a specific bookmark. | ![]() |
![]() |
![]() |
Retrieve document contents between specified bookmarks and merge to an existing or a new document. | ![]() |
![]() |
![]() |
Insert text or part of a document’s contents between specified bookmarks. | ![]() |
![]() |
![]() |
Replace a document’s contents between specified bookmarks with text or part of another document’s contents. | ![]() |
![]() |
![]() |
Delete document contents between specified bookmarks. | ![]() |
![]() |
![]() |
Conversions | Read | Write | |
---|---|---|---|
Word 97-2003 formats (*.doc, *.dot) | ![]() |
![]() |
|
Word 2007-2016 formats (*.docx, *.dotx, *.docm, *.dotm, *.xml) | ![]() |
![]() |
|
Word 2003 XML Document (*.xml) | ![]() |
![]() |
|
OpenDocument Text(*.odt) | ![]() |
![]() |
|
RTF | ![]() |
![]() |
|
HTML | ![]() |
![]() |
|
Text | ![]() |
![]() |
|
![]() |
![]() |
||
EPUB | ![]() |
![]() |
|
Image (PNG, BMP, JPEG, EMF, TIFF) | ![]() |
![]() |
CASE STUDY
Syncfusion’s file format components helped me create the reports I needed, fast. – J. Pereira, Software Developer.
The libraries have been built from scratch and refined for more than a decade to provide blazing-fast performance, comprehensive API, and compatibility across the latest and older versions of these files.
VIDEOS
Syncfusion File Format Libraries - Manipulate Excel, Word, PowerPoint, and PDF files
Read and write Excel, Word, PDF, and PowerPoint files. Also includes integrated visualization capabilities. Advanced features include support for pivot tables, pivot charts, mail-merge, and extensive formatting.
E-BOOK
Succinctly Series: Statistics Using Excel Succinctly
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.