Navegue pelos nossos produtos

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.


Product Docs Swagger Examples Blog Support Dashboard

Instalação

O pacote está disponível em nuget.org e pode ser instalado pelo Console do Gerenciador de Pacotes com o seguinte comando:

NuGet\Install-Package GroupDocs.Assembly-Cloud

Version NuGet NuGet-GroupDocsCloud


Requisitos

  • .NET Framework 2.0 ou .NET Standard 2.0
  • NuGet
  • System.Web ao direcionar para o .NET Framework 2.0
  • Credenciais do GroupDocs Cloud — Client ID and Client Secret do painel

Início rápido

Obter as credenciais de API

Para usar o GroupDocs.Assembly Cloud, inscreva-se no painel do GroupDocs.Cloud e obtenha o Client ID e o Client Secret.

Inicializar a API

Use o código a seguir para começar a usar o GroupDocs.Assembly Cloud SDK for .NET.

using GroupDocs.Assembly.Cloud.Sdk;
using GroupDocs.Assembly.Cloud.Sdk.Model;
using GroupDocs.Assembly.Cloud.Sdk.Model.Requests;

var configuration = new Configuration
{
    ApiBaseUrl = "https://api.groupdocs.cloud",
    AppSid = "YourClientId",
    AppKey = "YourClientSecret"
};

var assemblyApi = new AssemblyApi(configuration);

Veja BaseTestContext.cs para mais detalhes.

Montar um modelo em PDF

Este exemplo preenche um modelo com dados de relatório JSON e devolve o PDF.

using System.IO;
using GroupDocs.Assembly.Cloud.Sdk;
using GroupDocs.Assembly.Cloud.Sdk.Model;
using GroupDocs.Assembly.Cloud.Sdk.Model.Requests;

var configuration = new Configuration
{
    ApiBaseUrl = "https://api.groupdocs.cloud",
    AppSid = "YourClientId",
    AppKey = "YourClientSecret"
};
var assemblyApi = new AssemblyApi(configuration);

var data = File.ReadAllText("TableData.json");
var saveOptions = new AssembleOptions
{
    SaveFormat = "pdf",
    ReportData = data,
    TemplateFileInfo = new TemplateFileInfo { FilePath = "GroupDocs.Assembly/TableFeatures.odt" }
};

var result = assemblyApi.AssembleDocument(new AssembleDocumentRequest(saveOptions));
Console.WriteLine("Assembled document: " + result.Length);

Veja AssemblyApiTests.cs para mais detalhes.

Exemplos no GitHub

O repositório GroupDocs.Assembly Cloud .NET SDK contém o SDK e os testes. Não há um repositório de exemplos separado.

Como executar os exemplos

  1. Clone ou baixe o repositório do SDK
  2. Edite Settings/servercreds.json e defina AppSid, AppKey e BaseUrl
  3. Abra a solução no Visual Studio
  4. Execute os testes em GroupDocs.Assembly.Cloud.Sdk.Test

Para mais detalhes, visite Getting Started.


Product Docs Swagger Examples Blog Support Dashboard


Marcas

Document Automation | .NET Cloud API | REST API | Document Generation | Template-Driven | Dynamic Data Merging | Rich Formatting | Conditional Content Control | List Automation | Table Automation | Barcode Generation | Hyperlink Insertion | Bookmark Creation | Checkbox Manipulation | Mail Merge | Formula Calculations | Data Filtering | Data Sorting | Data Grouping | Data Formatting | Dynamic List Generation | Dynamic Table Generation | Chart Generation | Chart Customization | Cross-Platform SDKs | Comprehensive Documentation | Cloud-Based Flexibility | JWT Authentication | Microsoft Word | Microsoft Excel | Microsoft PowerPoint | OpenOffice | Email Formats | Web Document Formats | Barcode Types | QR Codes | DataMatrix | EAN Barcodes | UPCA | ISBN Barcodes | REST API


 Português