DocX is a .NET library that allows developers to manipulate Word 2007/2010/2013 files, in an easy and intuitive manner. DocX is fast, lightweight and best of all it does not require Microsoft Word or Office to be installed.
NOTE: There is a new Master branch as of Oct. 3, 2017. Please read about the Classic branch if you were using this project before the change.
DocX is the free, open source version of Xceed Words for .NET. Originally written by Cathal Coffey, and maintained by Przemyslaw Klys, it is now maintained by Xceed.
Currently, the differences between DocX and Xceed Words for .NET, is that Xceed Words for .NET :
All that you need to install in order to use DocX is the .NET framework 4.0 and Visual Studio 2010 or later, both of which are free.
Edition | DocX | Xceed Words for .NET |
Price | Free | $529.95 |
License | Ms-PL | Proprietary |
Email support | YES | |
Create new Word documents | YES | YES |
Modify Word documents | YES | YES |
Create new PDF documents | YES | |
Convert Word to PDF | YES | |
Supports .DOCX from Word 2007 and up | YES | YES |
Modify multiple documents in parallel for better performance | YES | YES |
Apply a template to a Word document | YES | YES |
Join documents, recreate portions from one to another | YES | YES |
Supports document protection with or without password | YES | YES |
Set document margins and page size | YES | YES |
Set line spacing, indentation, text direction, text alignment | YES | YES |
Wrap text around pictures | YES | |
Pictures with cropping | YES | |
Manage fonts and font sizes | YES | YES |
Set text color, bold, underline, italic, strikethrough, highlighting | YES | YES |
Set page numbering | YES | YES |
Create sections | YES | YES |
Update document fields (ex: a table of contents) by calling only one method | YES | |
Wrap text around tables | YES | |
Wrap text around shapes | YES | |
Create shapes (rectangles for now) | YES | |
Create textboxes or shapes containing text | YES | |
Get shapes from paragraphs | YES | |
Get charts from paragraphs and modify their categories/values | YES | |
Available on .net standard 2.0+ for .net core 2.0+ applications | YES | |
2 or more release ahead | YES |
Supported Word document elements
DocX makes creating and manipulating documents a simple task. It does not use COM libraries nor does it require Microsoft Office to be installed.
The following blog post from Cathal Coffey compares the code used to create a HelloWorld document using:
Do you have an interesting or informative example that you would like to share? If you do, please email me.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。