# Register Report Provider

## Content



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.<br /><br />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.

### Steps to Register Report Provider

### For FlexReport

1.  From the Solution Explorer window in Visual Studio, open the **Startup.cs** file.<br />
2.  In the Startup.cs file, you can use **ReportProviderManager.AddFlexReportStorage()** and **ReportProviderManager.AddFlexReportDiskStorage()** methods to add the storage information which contains report definitions (.flxr or .xml).
    
    ```EXAMPLE
    app.UseReportProviders()
    .AddFlexReportDiskStorage("Root", @"../reports");
    ```
    

### For SSRS Reports

1.  Form the Solution Explorer window in Visual Studio, open the **Startup.cs** file.<br />
2.  In the Startup.cs file, you can use **ReportProviderManager.AddSsrsReportHost()** method to add the SSRS server URL configuration in your application.<br />
    
    ```EXAMPLE
    app.UseReportProviders()
    .AddSsrsReportHost("c1ssrs", "http://ssrs.componentone.com:8000/ReportServer", new System.Net.NetworkCredential("ssrs_demo", "********"));
    ```