Starting in 2019, the Reporting control is no longer included in Essential Studio®. If you're experiencing issues with the Syncfusion� Reporting Platform, Report Viewer, Report Designer, or Report Writer, we recommend migrating to Bold Reports, our dedicated reporting platform.

Bold Reports offers a comprehensive suite of tools and features for all your reporting needs, and we will help you make a smooth transition from the discontinued control. Our support team at https://support.boldreports.com/ is here to assist you with any questions or difficulties you may encounter during the migration process.

We thank you for choosing Syncfusion� and appreciate your understanding.

Ej-ReportViewer In Angular 2 with ASP.NET CORE webAPI

Hi

Actually i am a beginner at angular and currently working on Angular 2 with syncfusion report using Ej-ReportViewer.
I have made API in ASP.Net Core and called it from angular side.
And with API i want to  bind *.rdl file with Ej-ReportViewer.
While running this application i got one error for loading report.
I have attached the error screenshot in the attachment.

Attachment: Syncfusion_ReportViewer_Error1_c0d56a6d.rar

5 Replies

MM Mageshyadav M Syncfusion Team September 13, 2018 10:16 AM UTC

Hi Chiranjiv, 
 
Thanks for contacting Syncfusion support. 
 
Currently we don’t support to load SSRS server report in Asp.Net Core Web API but have support in other web platforms. But we have plans to load SSRS report using SQL 2017 Reporting services API only in Asp.Net Core in our upcoming release. 
 
Regards, 
Mageshyadav.M 



CH chiranjiv September 14, 2018 05:12 AM UTC

Thanks for the reply. 
I am using .rld file to load reports and this is totally working fine in Angular 1 with ASP.NET Core WebAPI,
but in Angular 2 or higher version it causes problems. 
Thanks.


MM Mageshyadav M Syncfusion Team September 14, 2018 02:21 PM UTC

Hi Chiranjiv, 
 
On further analysis of the shared error detail, the mentioned problem occurs when the datasource for the report is not loaded at our end. We suspect the mentioned problem occurs only when the “ProcessingMode” is not specified as Local when the datasource value for the report passed locally. If we pass the datasource value locally then we need to specify the processing mode as local as shown in below code example. 
 
        public void OnInitReportOptions(ReportViewerOptions reportOption) 
        { 
            string basePath = _hostingEnvironment.WebRootPath; 
            FileStream inputStream = new FileStream(basePath + @"\ReportRDL\Preluari1.rdlc", FileMode.Open, FileAccess.Read); 
            reportOption.ReportModel.Stream = inputStream; 
            reportOption.ReportModel.ProcessingMode = ProcessingMode.Local; 
        } 
 
For your reference we have prepared a WebAPI and Angular sample which can be downloaded from below location, 
 
If the issue still persists, then revert the shared sample with issue reproducible procedure which would be helpful for us to validate the mentioned at our end.  
 
Regards, 
Mageshyadav.M 



CH chiranjiv September 15, 2018 05:17 AM UTC

Thank u so much for the support . Now Working totally fine. Again thank u so much.


PR Padmini Ramamurthy Syncfusion Team September 17, 2018 10:35 AM UTC

Hi Chiranjiv, 
  
You are welcome and please get back to us if you need any other assistance. 
  
Regards, 
Padmini R. 


Loader.
Up arrow icon