.NET library to build highly customized reports using REST API
Start Free TrialGroupDocs.Assembly Cloud is a fully‑managed, REST‑based service that enables developers to generate richly formatted documents programmatically.
The service works with template files – Word, Excel, PowerPoint, HTML, PDF, or any of the supported OpenOffice formats – that contain special placeholder tags. At runtime, data from XML or JSON sources is bound to those placeholders using a LINQ‑style expression syntax, allowing you to inject simple values, tables, images, charts, bar‑codes, hyperlinks, and even conditional content. The cloud infrastructure handles all heavy lifting: parsing the template, performing calculations, rendering graphics and finally delivering the assembled document in the format you request (DOCX, PDF, HTML, PNG, etc.).
Because the API is platform‑agnostic, you can call it from any language that can issue HTTP requests. The .NET SDK wraps the REST calls in a native, object‑oriented API, hides authentication details and provides strongly‑typed request/response models.
Typical .NET workflow
groupdocs.GroupDocs.Assembly-Cloud
to your project.Configuration
object with your App SID and App Key (obtained from the GroupDocs Cloud dashboard).UploadFile
to place the template in GroupDocs Cloud Storage.AssembleDocument
– the SDK sends a single request; the response contains the generated file stream.The SDK is open‑source and maintained on GitHub: https://github.com/groupdocs-GroupDocs.Assembly-cloud/groupdocs-GroupDocs.Assembly-cloud-dotnet. It receives regular updates, includes comprehensive unit tests, and follows semantic versioning.
Security is built‑in: all traffic is encrypted with SSL/TLS, and access is protected by personal API keys. No additional software or third‑party components are required on the client side – the service runs entirely in the cloud, making it ideal for on‑premises, serverless, or desktop applications.
In short, GroupDocs.Assembly Cloud together with the .NET SDK gives you a scalable, low‑code solution for generating contracts, invoices, reports, proposals, mail‑merge letters and any other document‑heavy workflow directly from your C# code.
The snippet demonstrates how to upload a template file, bind a data source and generate a document using the Assembly Cloud API.
Steps
AssembleOptions
– specify output format, data, and template path.AssembleDocument
and receive the assembled file.using GroupDocs.Assembly.Cloud.Sdk;
var config = new Configuration
{
AppSid = "####-####-####-####-####",
AppKey = "##################"
};
var assemblyApi = new AssemblyApi(config);
var fileName = "Input1.docx";
var dataFile = "Input2.docx";
// Upload template
var uploadRequest = new UploadFileRequest(File.OpenRead(fileName), fileName);
assemblyApi.UploadFile(uploadRequest);
// Assemble document
var assembleOptions = new AssembleOptions
{
SaveFormat = "docx",
ReportData = File.ReadAllText(dataFile),
TemplateFileInfo = new TemplateFileInfo { FilePath = fileName }
};
var assembleRequest = new AssembleDocumentRequest(assembleOptions);
var assembledDocument = assemblyApi.AssembleDocument(assembleRequest);