![C# .NET Word API Library Examples](http://cdn.mescius.io/umb/media/k2pn5cva/2023-mescius-docs-api-word.png)
Feature-Rich Microsoft Word Document API Library for .NET 6+
Document Solutions for Word (DsWord, previously GcWord) allows you to generate Word documents with speed, memory efficiency with no dependencies.
- Generate, load, edit, and save Word documents
- Feature-rich object model based on Microsoft Office API
- Generate reports from scratch or use report templates
- Compatible on multiple platforms, such as Windows, macOS, and Linux
- Deploy to Azure and AWS
Overview
A .NET Word API library is a programming interface that allows developers to programmatically create and manipulate Microsoft Word documents at scale. Document Solutions for Word (DsWord) is a solution that allows developers to import/export DOCX files, create reports & templates, and deploy Word documents across desktop and web applications
Benefits of a C# .NET Word API
Fast and Efficient
Save memory and time with the lightweight API architecture. The bigger the document, the faster our API generates complex Word documents.
Extract Data From Word Documents
Parse existing Word documents into databases or generate new Word documents as needed—extraction includes everything from text to paragraphs and images.
Simple, Convenient Object Model
This all-new, feature-rich object model, based on Microsoft Office API, Word JavaScript API, and OpenXML SDK, is straightforward and intuitive.
Full .NET Support for Windows, Linux, and Mac
Develop for any .NET platform or major operating systems with a single code base. Use in your apps for .NET Framework, Mono, Xamarin.iOS, and Xamarin.Android.
Convert Word to PDF and Images
In addition to generating Word documents, you can quickly and easily convert those documents to an image or PDF in code—a top use case for this fast API.
Deploy Apps With Word Docs to the Cloud
Be everywhere with cloud-based deployment. With NuGet and Document Solutions for Word, you can deploy to Azure, AWS, and AWS Lambda.
Our Top C# .NET Word API Features
![.NET Word API Library Quick Start Guide](http://cdn.mescius.io/umb/media/qskpfx5k/docs-tile-quick-start.png)
Quick Start
This guide explains how to create a program that uses DsWord to generate and save a DOCX file with the typical "Hello, World!" text to a disk.
![.NET Word API Library Modification](http://cdn.mescius.io/umb/media/30viej00/feature-modification.png)
Load & Modify Existing DOCX Files
Load existing DOCX files and modify formatting, change theme colors, split or merge documents, copy paragraphs, and much more.
Find and Replace
Easily use C#/VB .NET code to find text in DOCX files, as well as replace all occurrences of text throughout the document, and insert text at specific locations.
![.NET Word API Library File Formats](http://cdn.mescius.io/umb/media/krjkc1qq/feature-support-for.png)
Popular Word Document Formats
Create and work with a variety of popular Word documents. Input/Output includes DOCX, DOTM, DOCM, and DOTX. Output includes PDF and PDF/A.
Styles
Work with built-in and user-defined styles that demonstrate common, table, list, character, and paragraph styles.
![.NET Word API Library Content Editing](http://cdn.mescius.io/umb/media/2ibp334e/feature-content.png)
Content
Add and edit content and work with styles including word wrapping, tables, paragraph styles, image placement, and inline text options.
![.NET Word API Library Modify Elements](http://cdn.mescius.io/umb/media/iu3n51yb/feature-insert-modify.png)
Insert, Modify, and Remove Document Elements
Insert, edit, and remove paragraphs, text, sections, images, tables, headers, footers, footnotes, endnotes, comments, bullet lists, numbered lists, fields, hyperlinks, bookmarks, and page breaks.
![.NET Word API Library List Templates](http://cdn.mescius.io/umb/media/1nzjiw5t/feature-templates.png)
Templates
Create lists with built-in templates with formatting similar to lists in Microsoft Word, including level and level number.
![C# .NET Word API Library report templates](http://cdn.mescius.io/umb/media/3z5dl3me/feature-fancy-documents-v2.png)
Word (.docx) Report Templates
Use report templates to generate contracts, leases, consulting agreements, and more using data-bound Word .docx documents.
![.NET C# Word API Library Tables](http://cdn.mescius.io/umb/media/ziccji3a/feature-tables.png)
Tables
Work with tables that contain grid spans, alternative rows, conditional styles, and simple or nested groups.
![.NET 8 Word API Supports Inserting Online Videos in DOCX](http://cdn.mescius.io/umb/media/ks0fh3sp/video-links-in-docx.png)
![.NET Word API Library Fields](http://cdn.mescius.io/umb/media/pkjo5k4u/field.png)
Fields
Easily add fields to a document for a formatted date and/or time, hyperlinks to web content or other documents, and custom fields that modify the document content.
![.NET C# Word API Library Shapes](http://cdn.mescius.io/umb/media/waheqlgp/feature-shapes.png)
Shapes
Add and edit shapes from a wide range of geometric shapes, shape presets, and theme-based shape styles in Word documents.
![.NET Word API Library Content Controls](http://cdn.mescius.io/umb/media/2ibp334e/feature-content.png)
Content
Add and edit content and work with styles for word wrapping, tables, and different paragraph styles. From basic adding, removing, editing, and content formatting to image placement and inline text options, DsWord can do it all.
![Add Effects to Word DOCX using C# .NET Word API](http://cdn.mescius.io/umb/media/g3nf3otd/gcword-effects.jpg)
Effects
Customize the look of your content in MS Word files and apply effects on Shapes and Text in Word .docx files.
![Use .NET Word API to create large documents (100+ paragraphs)](http://cdn.mescius.io/umb/media/w3uldm04/feature-large-documents.png)
![.NET Word API Library Mail Merge Bookmarks](http://cdn.mescius.io/umb/media/sdkfedkt/feature-mail-merge.png)
Mail Merge
Implement mail merge using bookmarks in an MS Word DOCX with only a few lines of code and no dependency on Word.
![.NET Word API Library Documents Using Multiple Features](http://cdn.mescius.io/umb/media/3z5dl3me/feature-fancy-documents-v2.png)
Fancy Documents
Showcase multiple features within one document by utilizing fancy document layouts–showcasing several DsWord features.
![.NET Word API Library Miscellaneous](http://cdn.mescius.io/umb/media/dfukei4s/feature-miscellaneous.png)
Miscellaneous
Learn how to work with content controls, custom XML parts, glossary documents, style sources, sample paragraphs, JsFramework excerpts, and the Procurement Letter template in Word documents.
![Embed Fonts in MS Word Documents using a .NET Word API](http://cdn.mescius.io/umb/media/sdwnzpxe/21-feature-embed.png)
Embed Fonts
Define and embed fonts in MS Word documents to render the document correctly, even if the font is not available on the system.
![Programmatically Convert Markdown to Word in .NET Apps using a Word API](http://cdn.mescius.io/umb/media/zjadh3jg/markdown-to-docx.png)
Convert Markdown .md to Word .docx (Sample)
Full source code available to parse Markdown .md file using Markdig markdown processor (BSD 2-Clause license) and convert to Word .docx file using DsWord.
![Convert a Word DOCX to a Password Protected PDF in a .NET App](http://cdn.mescius.io/umb/media/qf1ol5fn/password-protected.png)
Password protect the exported PDF
Allow users to specify security-related features (e.g. password, limit copying, etc.) when converting Word .docx file to PDF.
![Programmatically Set/Apply Linked Styles in Word Documents in .NET apps](http://cdn.mescius.io/umb/media/qfzoxulf/linked-styles-in-word-docs.png)
![Add Office Math Content in Word Documents - .NET Word DOCX API](http://cdn.mescius.io/umb/media/3phaampw/office-math-in-docx.png)
Add Office Math Content in Word Documents
Add Office Math content to Word document. Also supported is Office Math to MathML conversion and vice versa.
Explore the Advanced Features of a .NET Word API
Your full-fledged ASP.NET Core sample browser includes all the major features, real-time DOCX, PDF, image files, and use cases. Download individual .NET Core samples that can run as a standalone. The demos also include full sample code with comments along every step to help you onboard quickly with Document Solutions for Word.
Easy Licensing and Distribution
Document Solutions Media
Trusted by the World's Leading Companies
![MESCIUS Customers](http://cdn.mescius.io/umb/media/e1viviwd/2020-clogo-group2.png)