ComponentOne Web API Edition provides support for SSRS reports for the WebApi services. To work with different report types in C1 WebApi, you need to specify the report provider information in the service request URL. Before you specify the provider information in the Service URL, you need to register the report provider in your Visual Studio application.
To locate the real path of the report, you need to register a report provider which provides the root path of the report. The report provider should be registered by using the ReportProviderManager class in the Startup.Configuration section of your application.
Example |
Copy Code
|
---|---|
app.UseReportProviders() .AddFlexReportDiskStorage("Root", @"../reports"); |
Example |
Copy Code
|
---|---|
app.UseReportProviders() .AddSsrsReportHost("c1ssrs", "http://ssrs.componentone.com:8000/ReportServer", new System.Net.NetworkCredential("ssrs_demo", "********")); |