.NET Core gives a you modular platform for creating server applications that run on Windows, Linux and Mac. This tutorial shows how to utilize Visual Studio Code to create a .NET Core application that creates a document using ReportingCloud.
Create a ReportingCloud Account
- Create a ReportingCloud account by registering here.
- Login to the ReportingCloud portal and open the Template Gallery.
- Find the template Repeating Blocks, hover over the thumbnail and click the button Add to My Templates.
Initialize the .NET Core Application
Open a command prompt and navigate to a folder where you would like to create the C# project and type:
dotnet new console
Resolve the build assets by typing:
Open Project Folder in Visual Studio Code
Open Visual Studio Code and select Open Folder... from the File main menu. In the opened dialog, select the folder where you created the .NET Core application.
When the project folder is first opened in Visual Studio Code, a notification will appear at the top of the window asking if you would like to add the required assets to build and debug your project. Select Yes.
Open the TERMINAL tab and type in:
dotnet add package TXTextControl.ReportingCloud.Core
This adds the ReportingCloud NuGet package to the project.
Open the Program.cs file and paste the following code.
Change the namespace to the namespace you created and replace username and password with your ReportingCloud credentials.
Save the file and type the following into the TERMINAL window and hit enter:
The template has been created and is returned as an RTF document. Using ReportingCloud, you can create documents in all types of applications in many industry standard formats including Adobe PDF and PDF/A, MS Word, Office Open XML and Rich Text Format.