GroupDocs.Assembly-Cloud

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.


Keywords
GroupDocs, Assembly, Cloud, .NET, SDK, report, generation, DOCX, XLSX, DOC, XLS, PPT, PPTX
License
MIT
Install
Install-Package GroupDocs.Assembly-Cloud -Version 21.1.0

Documentation

GroupDocs.Assembly.Cloud.Sdk - the C# library for the GroupDocs.Assembly for Cloud API References

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.

Key Features

  • API to Define Templates, Fetch Data Source, Insert Data in Template & Generate on the fly Reports.

How to use the SDK?

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).

Prerequisites

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.

Installation

Install roupDocs.Assembly-Cloud via NuGet

From the command line:

nuget install GroupDocs.Assembly-Cloud

From Package Manager:

PM> Install-Package GroupDocs.Assembly-Cloud

From within Visual Studio:

  1. Open the Solution Explorer.
  2. Right-click on a project within your solution.
  3. Click on Manage NuGet Packages...
  4. Click on the Browse tab and search for "GroupDocs.Assembly-Cloud".
  5. Click on the GroupDocs.Assembly-Cloud package, select the appropriate version in the right-tab and click Install.

Sample usage

Test running

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.

Dependencies

Contact Us

Product Page | Documentation | API Reference | Code Samples | Blog | Free Support | Free Trial