.NET Reporting and Document Generation APIs

.NET document automation API to generate Microsoft Word, Excel, PowerPoint and OpenOffice documents on the fly

  Download Free Trial
.NET document generation API

GroupDocs.Assembly for .NET


GroupDocs.Assembly for .NET is a document automation and reports generation API designed to create custom documents from templates. This .NET reporting API intelligently assembles the given data with the defined template document and generates an output document based on the data source, in the template's format as well as in the specified output format.

Automation API supports different elements such as Text or HTML Blocks, Repeated and Conditional Blocks, Images, Charts etc that can be added to document templates which allow developers to create rich documents as per their custom requirements. Every template element has its own formatting properties like Text formatting, Chart formatting, numeric value formatting and more

Previous Next

Advanced Document Generation API Features



Multiple document formats support


Generate documents from more than one data sources


Data manipulation features


Change output file format


Support for multiple template elements


Multiple template elements formatting support


Template syntax formatting


LINQ-based template syntax

More than one data sources

Generate documents from following data sources

  • Database
  • Odata
  • JSON
  • XML
  • Custom .NET objects

Data manipulation features

  • Formulas supported using C# syntax subset
  • Sequential data operations such as filtering, ordering, grouping, aggregating, etc. supported via LINQ syntax for data sources of all types
  • Type member invocation
  • Built-In data relation support
  • Data processing customization supported using external .NET types
  • External document import

Support for multiple template elements

  • Formatted text blocks
  • HTML blocks
  • Repeated blocks including list items and table rows
  • Conditional blocks including list items and table rows
  • Images
  • Charts
  • Barcodes supported through barcode fonts
  • Hyperlinks
  • Pivot tables will be supported soon
  • Bound form controls will be supported soon

Template Syntax Formatting

  • String Formatting
    • lower, upper, caps, firstCap
  • Numeric Formatting
    • alphabetic, roman, ordinal, ordinalText, cardinal, hex, arabicDash
  • Outer Document Insertion
    • Outer documents can be inserted in reports dynamically
  • Barcode Image Generation
    • Barcode images can be generated in Word, Excel and PowerPoint documents
  • Multiple template elements formatting support
    • Numeric/Date-Time value formatting
    • Text Formatting
    • Conditional text formatting supported only through conditional blocks
    • Image formatting (WYSIWYG)
    • Chart formatting (WYSIWYG)

Template Syntax

  • LINQ-based
  • Mustache will be supported soon

Automation API - Integration

GroupDocs.Assembly for .NET API can easily be integrated with just few lines of code. Here is sample code for reports generate in open document format

Generate report in open document format - C#

// Setting up data set 
var customer = DataLayer.GetCustomerData();
//Instantiate DocumentAssembler class 
DocumentAssembler assembler = new DocumentAssembler();
//Call AssembleDocument to generate report
assembler.AssembleDocument("D:\\WordTemplates\\Barcode.docx", "D:\\WordReports\\Barcode.docx", new DataSourceInfo(customer , "customer"));

Support and Learning Resources


GroupDocs.Assembly offers document automation APIs for other popular development environments as listed below: