Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.33 KB

upload-reports-in-report-server-with-public-api.md

File metadata and controls

48 lines (38 loc) · 1.33 KB
title description type page_title slug position tags ticketid res_type
Add reports to Report Server programmatically
Upload reports to Report Server from the code
how-to
Use Report Server API to upload reports
upload-reports-in-report-server-with-public-api
1168719
kb

Environment

Product Version 4.1 18.604
Product Progress® Telerik® Report Server (with 15 CAL users)

Description

How to upload a report in the Report Server using the public [API]({%slug rest-api-overview%}).

Solution

A simple console application in C# demonstrating how to upload a report (Concentric_NumericalScale_test.trdx that is included in the project) programmatically using the Report Server API is available in the attached UseReportServerApi.zip file.

It is necessary to change the Log-in details to reflect your local settings, i.e. modify the following code accordingly:

class Program
{
	static void Main(string[] args)
	{
		ReportServerClient reportServerClient = new ReportServerClient(@"http://yourlocalreportserver:83/api/reportserver/");
		reportServerClient.Login("demoUser", "demoPass");
		//...
	}
}