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 |
Product Version | 4.1 18.604 |
Product | Progress® Telerik® Report Server (with 15 CAL users) |
How to upload a report in the Report Server using the public [API]({%slug rest-api-overview%}).
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");
//...
}
}