Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
xceed.com 7e17c76f51 Xceed maintaining project 8 år sedan
BuildProcessTemplates Upgrade: New Version of LabDefaultTemplate.xaml. To upgrade your build definitions, please visit the following link: http://go.microsoft.com/fwlink/?LinkId=254563 13 år sedan
DocX Merge pull request #127 from GrabzIt/master 8 år sedan
DocX.iOS Code cleanup - introducing the 'nameof' operator instead of string values 9 år sedan
DocX.iOS.Test Added DocX.iOS + iOS Test app 9 år sedan
Documentation Removed hosted process in release mode 8 år sedan
Examples Removed hosted process in release mode 8 år sedan
UnitTests set net framework 4.6 8 år sedan
.gitignore feat (ReplaceHandler) Allow a replace to take a func to do work against a regex match. Useful for mailmerge scenarios. 10 år sedan
.travis.yml Adding configurations for AppVeyor and Travis CI 9 år sedan
DocX.Xamarin.sln Added DocX.iOS + iOS Test app 9 år sedan
DocX.cs Header and footer margin attribute added 9 år sedan
DocX.sln Removed files from MSTest no longer needed 9 år sedan
DocX.vssscc Cathal: Added DocX (HeaderText & FooterText) properties 16 år sedan
README.md Xceed maintaining project 8 år sedan
appveyor.yml Adding configurations for AppVeyor and Travis CI 9 år sedan

README.md


What is DocX?

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.

Install via Nuget

Install-Package DocX

DocX Author

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 only difference between DocX and Xceed Words for .NET, is that Xceed Words for .NET can convert a Word document to PDF, and has professional technical support included in the subscription.

What else do I need?

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.

What are the main features of DocX?

  1. Insert, Remove or Replace text in a document.
    All standard text formatting is available:
    1. Font {Family, Size, Color},
    2. Bold,
    3. Italic,
    4. Underline,
    5. Strikethrough,
    6. Script {Sub, Super},
    7. Highlight
  2. Here’s a cool example of replacing text across many documents in Parallel
  3. Paragraph properties are exposed:
    1. Direction LeftToRight or RightToLeft,
    2. Indentation,
    3. Alignment
  4. DocX also supports:
    1. Pictures,
    2. Hyperlinks,
    3. Tables,
    4. Headers & Footers,
    5. Custom Properties

Why would I use DocX?

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:

  1. Office Interop libraries,
  2. OOXML SDK,
  3. DocX

How can I learn more?

Cathal Coffey’s blog contains some code examples . The below videos are also excellent tutorials on how to use DocX.

Getting started Paragraphs and text formatting

Advanced Examples

  1. Step by step guide to create an invoice for a company. http://cathalscorner.blogspot.com/2009/08/docx-v1007-released.html
  2. Replace text across many documents in Parallel. http://cathalscorner.blogspot.com/2010/12/replace-text-across-many-documents-in.html
  3. Programmatically manipulate an Image imbedded inside a document. http://cathalscorner.blogspot.com/2010/12/programmatically-manipulate-image.html
  4. Converting DocX into (.doc, .pdf, .html) http://cathalscorner.blogspot.com/2009/10/converting-docx-into-doc-pdf-html.html

Do you have an interesting or informative example that you would like to share? If you do, please email me.

What do other people think?

Testimonials


NuGet Version