Category / Section
                                    
                                Can specify ReportServer URL in Web API controller?
                
                Published:
                
            
            
                
                Updated:
                
            
    Yes, you can specify the reportServerUrl property in Web API controller as shown in the following code snippet.
[NonAction]
public void OnInitReportOptions(ReportViewerOptions reportOption)
{
  reportOption.ReportModel.ReportServerUrl = "https://testing.SSRS.Server.com";
}