This repository contains GroupDocs.Assembly Cloud SDK for .NET source code. This SDK allows you to work with GroupDocs.Assembly Cloud REST APIs in your .NET applications quickly and easily, with zero initial cost.
See API Reference for full API specification.
- API to Define Templates, Fetch Data Source, Insert Data in Template & Generate on the fly Reports.
The complete source code is available in this repository folder. You can either directly use it in your project via source code or get NuGet distribution (recommended).
To use GroupDocs.Assembly for Cloud .NET SDK you need to register an account with GroupDocs Cloud and lookup/create App Key and SID at Cloud Dashboard. There is free quota available. For more details, see GroupDocs Cloud Pricing.
From the command line:
nuget install GroupDocs.Assembly-Cloud
From Package Manager:
PM> Install-Package GroupDocs.Assembly-Cloud
From within Visual Studio:
- Open the Solution Explorer.
- Right-click on a project within your solution.
- Click on Manage NuGet Packages...
- Click on the Browse tab and search for "GroupDocs.Assembly-Cloud".
- Click on the GroupDocs.Assembly-Cloud package, select the appropriate version in the right-tab and click Install.
Before run tests please fill file servercreds.json with this json
{
"AppSid": "your app sid here",
"AppKey": "your app key here",
"BaseUrl": "https://api.groupdocs.cloud"
}
The examples below show how your application have to assemble document using GroupDocs.Assembly-Cloud library:
var fileName = "Template.docx";
var dataName = "JsonData.json";
var data = File.ReadAllText(Path.Combine(pathToData));
var saveOptions = new AssembleOptions() { SaveFormat = "pdf", ReportData = data, TemplateFileInfo = new TemplateFileInfo { FilePath = pathToFile } };
var request = new AssembleDocumentRequest(saveOptions);
var result = this.AssemblyApi.AssembleDocument(request);
Tests contain examples of using the SDK.
- .NET Framework 2.0 or later
- Json.NET
Product Page | Documentation | API Reference | Code Samples | Blog | Free Support | Free Trial