We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SSRS Server Reports using ASP.NET CORE

Thread ID:

Created:

Updated:

Platform:

Replies:

146764 Aug 16,2019 04:20 AM UTC Aug 19,2019 05:39 AM UTC ASP.NET Core 1
loading
Tags: ReportViewer
chiranjiv
Asked On August 16, 2019 04:20 AM UTC

Does Syncfusion Reportviewer support SSRS Server reports in ASP.NET Core?

If yes can you please provide example

Thanks

Vinoth Srinivasan [Syncfusion]
Replied On August 19, 2019 05:39 AM UTC

Hi Chiranjiv, 

Thanks for your interest with our Syncfusion products. 

We have prepared the sample to load the SSRS server report in our ASP.NET Core ReportViewer control for your reference and it can be downloaded from below location.  

We need to pass the SSRS report server URL and credentials to retrieve the report from SSRS server in our ReportViewer.  

Please find the below help documentation for how to configure the SSRS server in our ReportViewer.  

Please find the below code snippet for how to pass a server URL, report path in client side.  
@{  
    ViewData["Title"] = "ReportViewer ASP.NET CORE Support";  
}  
<style>  
    body, html, #reportviewer {  
        overflow: hidden !important;  
        height: 100%;  
        width: 100%;  
    }  
</style>  
@*<ej-report-viewer id="reportviewer1" report-service-url="../Home" report-server-url="<pass your SSRS server URL>" report-path="<pass your report path>" />*@  
<ej-report-viewer id="reportviewer1" report-service-url="../Home" report-server-url="http://localhost/ReportServer" report-path="/CustomerTesting" processing-mode="Remote" />  
<ej-script-manager></ej-script-manager>  
 
 
Please find the below code snippet for how to pass the server credentials, and if we use datasource with credentials then how to pass the credentials for datasource in server side.  
        public void OnInitReportOptions(Syncfusion.EJ.ReportViewer.ReportViewerOptions reportOption)  
        {  
            //Adds SSRS Server and Database Credentials here.  
            //reportOption.ReportModel.ReportServerCredential = new System.Net.NetworkCredential("<pass Server username>", "<pass password>");  
            reportOption.ReportModel.ReportServerCredential = new System.Net.NetworkCredential("testing","testing@123");  
            //reportOption.ReportModel.DataSourceCredentials.Add(new DataSourceCredentials("<pass Datasource name>", "<pass User name>", "<pass password>"));  
            reportOption.ReportModel.DataSourceCredentials.Add(new DataSourceCredentials("FADatasource","sa", "test@123"));  
        }  
 
 
The Syncfusion ASP.NET Core 2.0 Report Viewer supports to load only the SQL 2017 Reporting services API reports only. Because Microsoft has provided needed API Service access for only SSRS 2017 in ASP.NET core platform. Due to restrictions in API, the lower version of SSRS API Services are not accessible fully in ASP.NET Core platform.  
 
Note: We have provided dummy credentials in the sample shared hence please replace your server url, sample name, server credential and datasource credential to test the above sample. 

Regards, 
Vinoth S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon