Hello,
Am trying to implement ReportViewer control in asp.net core using SSRS reports on SSRS reportserver, I followed the documentation and modified the sample project from the link: http://www.syncfusion.com/downloads/support/directtrac/general/ze/ReportSample_core_2.01547272499
changes I made:
index.cshtml:
<ej-report-viewer id="reportviewer1" report-service-url="../Home" processing-mode="Remote"
ReportServerUrl="http://dev-sql2016/ReportServer"
ReportPath="/Epic Reports/Client Statements/ClientInfo">
</ej-report-viewer>
HomeController.cs:
/// <summary>
/// Report Initialization method that is triggered when report begins to process.
/// </summary>
/// <param name="reportOptions">The ReportViewer options.</param>
public void OnInitReportOptions(ReportViewerOptions reportOptions)
{
//Adds SSRS Server and Database Credentials here.
reportOptions.ReportModel.ReportServerCredential = new System.Net.NetworkCredential("administrator@devinternal.local", "pass123");
reportOptions.ReportModel.DataSourceCredentials.Add(new DataSourceCredentials("DB_Main_SQL", "dev1", "pass1"));
}
I recieve following error:
_reportLoaded:Sf_Exception - Make sure that you typed the report name and path are correctly, and the report exists in the specified directory
Can you please help me in right direction.
Thank you.
Dheeraj