Blader door onze producten

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

Installation

Das Paket ist verfügbar auf nuget.org und kann über die Paketmanager-Konsole mit dem folgenden Befehl installiert werden:

NuGet\Install-Package GroupDocs.Assembly-Cloud

Version NuGet NuGet-GroupDocsCloud


Anforderungen

  • .NET Framework 2.0 oder .NET Standard 2.0
  • NuGet
  • System.Web bei Zielplattform .NET Framework 2.0
  • GroupDocs Cloud-Anmeldeinformationen — Client ID and Client Secret aus dem Dashboard

Schnellstart

API-Anmeldeinformationen abrufen

Um GroupDocs.Assembly Cloud zu verwenden, registrieren Sie sich im GroupDocs.Cloud-Dashboard und rufen Sie Client ID und Client Secret ab.

API initialisieren

Verwenden Sie den folgenden Code, um das GroupDocs.Assembly Cloud SDK for .NET zu verwenden.

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

Weitere Informationen finden Sie in BaseTestContext.cs.

Vorlage zu PDF zusammenstellen

Dieses Beispiel füllt eine Vorlage mit JSON-Berichtsdaten und gibt das PDF zurück.

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

Weitere Informationen finden Sie in AssemblyApiTests.cs.

Beispiele auf GitHub

Das Repository GroupDocs.Assembly Cloud .NET SDK enthält das SDK und seine Tests. Es gibt kein separates Beispiel-Repository.

Beispiele ausführen

  1. Klonen oder laden Sie das SDK-Repository herunter
  2. Bearbeiten Sie Settings/servercreds.json und legen Sie AppSid, AppKey und BaseUrl fest
  3. Öffnen Sie die Projektmappe in Visual Studio
  4. Führen Sie die Tests in GroupDocs.Assembly.Cloud.Sdk.Test aus

Weitere Informationen finden Sie unter Getting Started.


Product Docs Swagger Examples Blog Support Dashboard


Schlagwörter

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


 Deutsch