GroupDocs.Assembly for .NET is a class library that enables you to generate documents in popular office and email file formats based upon template documents and data obtained from various sources including databases, XML, JSON, OData, CSV, objects of custom .NET types, external documents, and more. The library is not tied with any particular document type or industry and is able to help you in generation of documents of various types, be it business, financial, or legal documents, reports, letters, invoices, bills, insurance policies, NDAs, and so on.
$ dotnet add package GroupDocs.Assembly
Product Page | Docs | Demo | API Reference | Examples | Blog | Releases | Free Support | Temporary License
An on-premise API to generate documents of various formats based on user-defined templates as well as from other data sources, such as XML, OData, JSON, etc.
Microsoft Word: DOC, DOT, DOCX, DOCM, DOTX, DOTM, RTF
Microsoft Excel: XLSX, XLSM, XLTX, XLTM, XLSB, XLS, XLT
Microsoft PowerPoint: PPTX, PPTM, PPSX, PPSM, POTX, POTM, PPT, PPS
OpenOffice: ODS, ODT, OTT, OTP, ODP, OXPS
Email: EML, MSG, EMLX
Fixed Layout: PDF, XPS
Markup: HTML, MHTML, XML, XAML
Images: TIFF, SVG
eBook: EPUB
PostScript: PS
Printer Control: PCL
Markdown: MD
Text: TXT
Please visit the Supported Document Formats for details.
GroupDocs.Assembly for .Net can be used to build applications for Windows, Mac OS X x64 as well as Linux x64. Developers may also code in PHP, VBScript, Delphi & C++ programming languages while using GroupDocs.Assembly for .Net via COM Interop.
Are you ready to give GroupDocs.Assembly for .NET a try? Simply execute Install-Package GroupDocs.Assembly from Package Manager Console in Visual Studio to fetch & reference GroupDocs.Assembly, assembly in your project. If you already have GroupDocs.Assembly for .Net and want to upgrade it, please execute Update-Package GroupDocs.Assembly to get the latest version.
Please check the GitHub Repository for other common usage scenarios.
//Setting up source document template
const String strDocumentTemplate = "Markdown Templates/ReadMe.md";
//Setting up destination Markdown reports
const String strDocumentReport = "Word Reports/ReadMe Out.docx";
//Setting up description variable
const string description = "GroupDocs.Assembly for .NET is a class library that enables you to generate documents in popular " +
"office and email file formats based upon template documents and data obtained from various sources " +
"including databases, XML, JSON, OData, objects of custom .NET types, external documents, and more.";
DocumentAssembler assembler = new DocumentAssembler();
//Assemble Document
assembler.AssembleDocument(
CommonUtilities.GetSourceDocument(strDocumentTemplate),
CommonUtilities.SetDestinationDocument(strDocumentReport),
new DataSourceInfo("GroupDocs.Assembly for .NET", "product"),
new DataSourceInfo(description, "description"));
}
string strDocumentTemplate = "Word Templates/Using Spreadsheet as Table of Data.docx";
string strDocumentReport = "Word Reports/Using Spreadsheet as Table of Data_Output.docx";
// Assemble a document using the external document table as a data source.
DocumentAssembler assembler = new DocumentAssembler();
assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strDocumentTemplate),
CommonUtilities.SetDestinationDocument(strDocumentReport),
new DataSourceInfo(DataLayer.ExcelData(), "contracts"));
Product Page | Docs | Demo | API Reference | Examples | Blog | Releases | Free Support | Temporary License