We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

WinUI Word Library - Overview

The Syncfusion Essential DocIO is a feature-rich and high-performance WinUI Word library that allows you to add advanced Word document processing functionalities to any WinUI 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.

Overview diagram of WinUI Library.


General Information

Powerful and Comprehensive API

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.

Supported file formats

Create, read, and edit popular text file formats like DOC, DOT, DOCM, DOTM, DOCX, DOTX, HTML, RTF, TXT, and XML (WordML). Also convert Word documents to PDF, image (PNG, BMP, JPEG), and ODT files.

Start Reports with Word and Finish with DocIO

Design reports using Microsoft Word and use DocIO to dynamically populate them with data. The final report can then be saved to a Word file or exported to other supported formats like PDF.


Mail Merge

Simple mail merge using WinUI Word Library.

Simple Mail Merge

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.

Group mail merge using WinUI Word library.

Group Mail Merge

Performs mail merge by repeating a particular region of the document automatically for every record in the data source.

Nested mail merge using WinUI Word library.

Nested Mail Merge

Generates complex reports by repeating nested region of document with relational data.

Data sources for performing mail merge.

Data Sources

Populate the template Word document with data from common data sources like arrays, IEnumerable collection, dynamic objects, XML, etc.

Format the merged data during mail merge.

Formatting

Format the merged text, numeric values, and date-times automatically with the help of field switches.

Merge images during mail merge.

Images

When the prefix “image:” is added to the merge field name, it places the image in the merge field.

Mail merge events to customize the merged data.

Mail Merge Events

Customizes the document during mail merge by formatting and editing the merged text, numeric data, and image data with mail merge events, and also the layout of the document by inserting breaks.

Options to customize mail merge functionality.

Mail Merge Options

Supports mail merge 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.


Document Elements

Sections in Word documents.

Section

Organize the 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.

Header and footer in Word documents.

Add information like title, author, branding, or page number to repeat it at the top and bottom of every page. Use many header and footer types such as different first page and different odd and even pages.

Text in Word documents.

Text

Create or edit documents in supported languages. Use left-to-right and right-to-left text.

Images in Word documents.

Images

Insert images in a document with all the common layout options like text wrapping, positioning, and sizing. Use all common image formats like PNG, BMP, JPEG, TIFF, GIF, EMF, WMF, SVG, etc.

Bookmarks in Word documents.

Bookmarks

Create and insert bookmarks to identify parts of the document for future reference.

Hyperlinks in Word documents.

Create a link in a document for quick access to webpages, files, email, bookmarks, etc.

Fields in Word documents.

Fields

Add dynamic information like title, time, and page number in a Word document that update automatically. Update commonly used fields like merge field, IF field, date-time, page number, document properties, etc.

Text boxes in Word documents.

Text Boxes

Showcase important text or quotes in a document within a text box. Insert and edit text. Format and remove an existing text box.

Shapes in Word documents.

Shape

Add predefined shapes in Word open XML format documents (DOCX, DOTX, DOCM, DOTM, Word XML). Insert and edit text. Format and remove an existing shape.

Charts in Word documents.

Chart

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, titles, axes, data labels, legends, trendlines, etc. Format and remove an existing chart.

OLE objects in Word documents.

OLE Objects

Embed all the common file formats within a Word document. Extract the embedded OLE object data from a Word document and save its native file format.

Footnote and endnote in Word documents.

Footnote and Endnote

Additional information like detailed descriptions, references, or credits can be added at the end of each page and document. Edit and remove an existing note from a document.

Properties of a Word document.

Document Properties

Reads and writes document information with built-in document properties. Also, supports custom document properties and document variables.

Accessible Word document.

Accessible Document

Create accessible Word documents with 508-standard compliance with directly accessible elements like text and tables. Set alternate text for all graphical elements like images, text boxes, shapes, and charts.


Formatting

Text formatting in Word documents.

Text Formatting

Customize the appearance of text with several text-level formatting options, like: font family, size, style, underline, strikethrough, text color, highlight, subscript, superscript.

Paragraph formatting in Word documents.

Paragraph Formatting

Customize the appearance of a paragraph with several paragraph-level formatting options, like: indents, alignment, spacing, tab stops, text direction, etc.

Bullets and numbering in Word documents.

Bullets and Numbering

Organize items or create an outline of the document with bullets and numbering ranging from single-level to multilevel lists.

Page settings in Word documents.

Page Settings

Design the structure and layout of document pages with several properties like size, margins, orientation, columns, line numbers, borders, page background, watermarks, etc.

Styles in Word document.

Styles

Create and apply styles to ensure consistency within a document. Use predefined and custom character styles, paragraph styles, and predefined table styles.


Tables

Create, insert, and delete tables in a document. Use nested tables, too.

Edit tables in Word documents.

Edit

Edit a table in a document by merging cells, adding or removing cells and rows, resizing cells, etc.

Format tables in Word documents.

Format

Format a table with several properties like indent, alignment, cell margins and spacing, borders, shadings, repeat header row, break row across pages.

Table styles in Word documents.

Styles

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.


Edit and Organize

Copy and paste contents in Word documents.

Copy and Paste

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 common paste options like those in Microsoft Word.

Edit bookmark contents in Word documents.

Edit Bookmark Contents

Navigate to a bookmark in the document and insert, edit, retrieve, or delete its content. Replace the bookmarked contents with text, a part of a document, or an entire document.

Merge multiple Word documents.

Merge

Merges multiple documents into a single document with several formatting options like using destination styles, keeping source formatting, etc.

Split Word documents into multiple small documents.

Split

Split a document into multiple small documents based on sections, placeholder text, or any document element.


Find and Replace

Find text in Word documents.

Find Text

Find text by matching whole words, then highlight or format it. Find text patterns using regular expressions.

Replace text in Word documents.

Advanced Replace

Replace the text or text pattern with another piece of text, a part of a document, or an entire document. Retain source or target formatting.


Table of Contents

Create, insert, and edit a table of contents (TOC) to outline the contents of a document. Update or rebuild the TOC after modifying an existing Word document. Build a TOC based on headings with custom styles, including page numbers, and hyperlinks for easy navigation.


Content Controls

Design forms using content controls in Word documents.

Design Form

Create and insert content controls like plain text, rich text, pictures, check boxes, 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 a block content control.

Restrict editing the content of a content control.

Restrict Editing

Protect the content of a content control from being edited by locking its content. Also prevent deleting a content control from the document.

Bind the content control with XML elements.

Binding

Bind content controls to an element in a custom XML part that is embedded in a document.


Form Filling

Form filling with form fields in Word documents.

Form Fields

Create fillable forms with legacy form fields in Word documents. Fill the form fields and extract filled data from them effortlessly.

Form filling with content controls in Word documents.

Content Controls

Create more functional forms with content controls like plain text, rich text, pictures, check boxes, 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.


Review

Comments in Word documents.

Comments

Create and insert comments in a document to add notes about a part of the document while reviewing. Edit and remove comments from a document.

Accept and reject changes in Word documents.

Accept and Reject Changes

Accept and reject changes that are tracked within a Word document.

Compare Word documents.

Compare

Compare two Word documents and highlight the changes, such as insertions, deletions, and formatting, as tracked changes.


Feature Matrix

Document Content Features WORD 97-2003 WORD 2007-2016 RTF
Create a Word document from scratch or edit an existing Word document. Yes Yes Yes
Open an existing Word document from file system or stream. Yes Yes Yes
Save the Word document to file system, stream, or stream it to the client browser. Yes Yes Yes
Create, access, and modify paragraphs and text. Yes Yes Yes
Create, access, and modify tables, rows, and cells. Yes Yes Yes
Create, access, and modify hyperlinks. Yes Yes Yes
Create, access, and modify bookmarks. Yes Yes Yes
Rebuild and update a table of contents. Yes Yes Yes
Create, access, and modify fields. Yes Yes Yes
Update fields such as IF, formula, and other popular field types. Yes Yes No
Update Page and NumPages fields. Yes Yes No
Create, access, and modify footnotes and endnotes. Yes Yes Yes
Create, access, and modify images. Yes Yes Yes
Create, access, and modify shapes. Yes Yes Yes
Group and ungroup shapes. Yes Yes Yes
Insert text and picture watermarks. Yes Yes No
Create, access, and modify OLE objects from the document. Yes Yes No
Create, access, and modify charts . No Yes No
Create, access, and modify mathematical equations. No Yes No
Create equations using LaTeX. No Yes No
Access and modify built-in document properties. Yes Yes Yes
Create, access, and modify custom document properties. Yes Yes Yes
Update paragraph, word, and character count. Yes Yes No
Update page count. Yes Yes Yes
Access, create, and modify document sections, headers, and footers. Yes Yes Yes
Iterate over document content. Yes Yes Yes
Access and move elements between documents. No Yes No
Insert HTML text. Yes Yes Yes
Form filling WORD 97-2003 WORD 2007-2016 RTF
Create, access, and modify form fields (text, checkbox, dropdown). Yes Yes Yes
Create, access, and modify structured document tags (rich text, plain, date picker, picture, dropdown list, and combo box content controls). No Yes No
Bind content controls to custom XML parts (XML mapping). No Yes No
Lock content controls. No Yes No
Formatting WORD 97-2003 WORD 2007-2016 RTF
Format characters including font size, color, name, bold, italic, underline, and more. Yes Yes Yes
Format paragraphs including line spacing, alignment, indentation, spacing before and after, keep with next, and more. Yes Yes Yes
Format bulleted and numbered lists including numbering and levels. Yes Yes Yes
Format tables including alignment, borders, and shading. Yes Yes Yes
Access and modify all section properties including paper size, margins, and orientation Yes Yes Yes
Access, create, and modify character styles. Yes Yes Yes
Access, create, and modify paragraph styles. Yes Yes Yes
Apply built-in and custom table styles.  No Yes No
Review WORD 97-2003 WORD 2007-2016 RTF
Create, access, and modify comments. Yes Yes Yes
Accept and reject all track changes in a document. Yes Yes No
Accept and reject changes of a particular reviewer. Yes Yes No
Compare two Word documents No Yes No
Merge and split WORD 97-2003 WORD 2007-2016 RTF
Merge multiple Word documents into one. Yes Yes Yes
Split large Word documents into smaller documents by sections, headings, bookmarks, and placeholders. Yes Yes Yes
Mail merge WORD 97-2003 WORD 2007-2016 RTF
Create, access, and modify merge fields. Yes Yes Yes
Retrieve mail merge field names. Yes Yes Yes
Insert images during mail merge. Yes Yes Yes
Perform mail merge on documents that contain complex merge fields (conditional merge field). Yes Yes Yes
Perform mail merge for a specified region. Yes Yes Yes
Perform mail merge on reports that contain relational details (parent-child data). Yes Yes Yes
Perform mail merge from any .NET data source such as string array, DataSet, DataTable, DataView, and DataReader. Yes Yes Yes
Perform mail merge from any data source such as IEnumerable collection and dynamic objects. Yes Yes Yes
Format the merged text, images, or other elements during mail merge. Yes Yes Yes
Event hander to bind data for unmerged fields. Yes Yes Yes
Map the merge field names with column names in the data source.  Yes Yes Yes
Skip to merge particular a image during the mail merge process. Yes Yes Yes
Start a new page for each group of records. Yes Yes Yes
Find and replace WORD 97-2003 WORD 2007-2016 RTF
Find first occurrence of a specific text that matches the whole word and casing. Yes Yes Yes
Find a specified pattern using a regular expression. Yes Yes Yes
Find all occurrences of a specific text that matches the whole word and casing. Yes Yes Yes
Replace a text with the same formatting. Yes Yes Yes
Find and replace a text that extends to several paragraphs. Yes Yes Yes
Find and replace a text with the document content (paragraph or table). Yes Yes Yes
Find and replace a text with the content of another Word document. Yes Yes Yes
Find elements (image, content control, chart, and more) in a document based on specified properties and their corresponding values. Yes Yes Yes
Bookmarks WORD 97-2003 WORD 2007-2016 RTF
Create and manipulate bookmarks. Yes Yes Yes
Navigate to a specific bookmark. Yes Yes Yes
Retrieve document content between the specified bookmarks and merge to an existing or a new document. Yes Yes Yes
Insert text or part of a document content between the specified bookmarks. Yes Yes Yes
Replace the content of a document between specified bookmarks with a text or part of another document. Yes Yes Yes
Delete document content between specified bookmarks. Yes Yes Yes
Security WORD 97-2003 WORD 2007-2016 RTF
Open the password protected documents. Yes Yes No
Protect the documents with passwords. Yes Yes No
Restrict editing the documents. Yes Yes No
File formats Read Write  
Word 97-2003 formats (*.doc, *.dot) Yes Yes  
Word 2007-2016 formats (*.docx, *.dotx, *.docm, *.dotm, *.xml) Yes Yes  
Word 2003 XML Document (*.xml) Yes No  
OpenDocument Text (*.odt) No Yes  
RTF Yes Yes  
HTML Yes Yes  
Text Yes Yes  
PDF No Yes  
Image (PNG, BMP, JPEG) No Yes  
PDF and image conversions WORD 97-2003 WORD 2007-2016 RTF
Convert Word to PDF Yes Yes Yes
Convert Word to PDF/A Yes Yes Yes
Convert Word to PDF/UA (Section 508 compliant) Yes Yes Yes
Create fillable PDF from Word document. Yes Yes Yes
Convert Word to image (PNG, BMP, JPEG) Yes Yes Yes
Convert a specific page in a Word document into an image (thumbnail image). Yes Yes Yes
Convert a specified range of pages in a Word document into images. Yes Yes Yes
Use alternate fonts from installed fonts during Word to PDF or image conversion. Yes Yes Yes
Use alternate fonts without installing on the machine during Word to PDF or image conversion. Yes Yes Yes

Awards

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.

Scroll up icon