Aspose.Words  for .NET

Aspose.Words for .NET

.NET APIs to Process Word Documents

Create, manipulate, render or convert Word files to multiple formats as well as generate reports without depending on any external software.

  Download Free Trial
  
 

Aspose.Words for .NET is an advanced document processing API to perform a wide range of management and manipulation tasks. API supports to generate, modify, convert, render and print files without utilizing Microsoft Word directly within cross-platform applications. Moreover, API supports all the popular formats as well as allows exporting or converting Word files to fixed-layout and most commonly used image/multimedia formats.

By integrating API, some of the basic tasks developers can perform such as designing of fully-featured Microsoft Word reports having standard mail merge fields, reliable conversion between several popular formats, high fidelity rendering of pages, formatting of all document elements and more.

Advanced .NET Word API Features

Perform mail merge & generate reports

Insert formatted text, paragraphs, images, and tables

Fill tables using data from the database as well as create and modify table styles

Create mailing labels

Move sections between files

Mail merge data from multiple tables

Add watermark to document

Format date and numeric fields during mail merge

Join and split files

Encrypt documents as well as Load encrypted files

Find and replace text, enumerate over document content

Preserve or extract OLE objects and ActiveX controls

Preserve or remove VBA macros

Preserve VBA macros' digital signature

Detect digital signatures

Insert HTML contents

Interconvert file format

Add a bookmark at a deep level

Convert EquationXML to Office Math

Nested reports are supported by LINQ reporting engine

Create snip corner rectangle

Save the resources of MHTML document using the "Content-Id" URL Scheme

Show or hide comments in fixed file format

Show revisions in balloons

Popular File Format Conversion

API allows quick, reliable & high-quality conversion from any supported file format to another with just two lines of code. It is that simple!

Save the document in different formats - C#

// load the file to be converted

var wrdf = new Aspose.Words.Document(dir + "template.doc");

// save in different formats

wrdf.Save(dir + "output.docx", Aspose.Words.SaveFormat.Docx);

wrdf.Save(dir + "output.pdf", Aspose.Words.SaveFormat.Pdf);

wrdf.Save(dir + "output.html", Aspose.Words.SaveFormat.Html);

Render, Print or View Word Files

Aspose.Words for .NET has its own rendering engine specially designed for rendering & printing with highest of fidelity to the Microsoft Word. Using this feature, developers can render (draw) any page onto a .NET Graphics object while setting the size and zoom level to create thumbnails for displaying images in the browser. Moreover, API is fully integrated with the .NET printing infrastructure and have the ability to completely customize the process, so that developers can easily print or preview documents within their own applications

Few of the rendering capabilities that API can perform

  • Render pages or full documents to PDF, XPS or SWF.
  • Document pages to images including but limited to PNG, EMF, JPEG, GIF.
  • Individual document shapes into raster or vector images.
  • Render pages or shapes to a .NET Graphics object with transforms.

Programming with Document Object Model

Aspose.Words for .NET allows you to create, build and modify documents - including document formatting with an intuitive document object model that consists of over 100 classes. Some of the manipulations features that API can perform

  • Manipulate all elements including but not limited to sections, headers, footers, paragraphs, lists, tables, text, fields and much more.
  • Specify detailed formatting for any element including shapes, text boxes, images, OLE objects, and controls.
  • API can easily deal complex and deeply nested expressions containing IF blocks, formulas and other fields.
  • Provides utility features such as joining or splitting, copying fragments between documents, protecting and unprotecting files and a lot more.

Reporting & Mail Merge

Aspose.Words for .NET provides LINQ Reporting Engine to generate documents based upon template documents and data from different sources including databases, XML, JSON, OData, objects of custom CLR types, external documents, and more out of the box. API's Reporting Engine supports

  • Repeatable and conditional document blocks.
  • Dynamically generated charts and images.
  • Insertion of outer documents and HTML blocks into a document.
  • Various types of data sources for the creation of a single file.
  • Built-in support of data relations.
  • WYSIWYG generated file as of the corresponding template.

Additionally, developers can use API's extended syntax for mail merge fields to perform more complex operations during mail merge operations such as inserting images or repeatable regions. The data to drive your reports or mail merges can come from an ADO.NET data table, business objects or from a completely custom data source.

Execute simple mail merge - C#

// load the template containing merged fields

var wfle = new Aspose.Words.Document(dir + "template.doc");

// fill the fields with user data

wfle.MailMerge.Execute(

    new string[] { "FullName", "Company", "Deparment", "City" },

    new object[] { "John Doe", "Aspose", "Sales", "London" });

// save the result

wfle.Save(dir + "merged.doc");

Microsoft Office Automation - Not Needed

The library is built using managed code that does not need Microsoft Office or Microsoft Word to be installed on the machine to work with Word formats. It is a perfect Microsoft Office automation alternative in terms of supported features, security, stability, scalability, speed and price.

What People Are Saying

Don't just take our word for it. See what users have to say about Aspose.Words APIs.

 
 
View Case Studies
  

Support and Learning Resources

  
  

Aspose.Words offers individual Word processing APIs for other popular development environments as listed below: