Loading ...

Manage Word Documents Using C# | CodeAsp.Net

Manage Word Documents Using C#

0 (0votes)

There are many commercial Microsoft Word management tools out there with prices starting from $1200 upwards. But few people know that they can use OpenXML to create, edit, and save MS Word documents without needing any Office assemblies or 3rd party tools.

One of the tools is DocX: http://docx.codeplex.com/

DocX is a .NET library that allows developers to manipulate Word 2007/2010 files, in an easy and intuitive manor. DocX is fast, lightweight and best of all it does not require Microsoft Word or Office to be installed.

What are the main features of DocX?

1) Insert, Remove or Replace text in a document.  
All standard text formatting is available. Font {Family, Size, Color}, Bold, Italic, Underline, Strikethrough, Script{Sub, Super}, Highlight. 
Here’s a cool example of replacing text across many documents in Parallel. 

2) Paragraph properties are exposed. 
     a) Direction LeftToRight or RightToLeft, 
     b) Indentation, 
     c) Alignment. 

3) DocX also supports 
     a) Pictures
     b) Hyperlinks
     c) Tables
     d) Headers & Footers
     e) 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. 

What if I want to handle older MS Word formats? Aspose.Words .NET

Though DocX is good, but if you want greater flexibility in handling your Word documents from .NET code, then Aspose.Words is your best bet. Aspose.Words has great VFM (value-for-money) and can easily handle older office formats as well. With extensive documentation you can quickly get upto speed on managing your Word documents.

Comments (no comments yet)

Top Posts