Add reports to Report Server programmatically

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.

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");
        ...
    }
}
In this article
Not finding the help you need? Improve this article