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. Image for the cookie policy date

Can ReportViewer be used strictly on client in Angular application?

We are migrating from legacy system and have following requirement:

We have RDL XML available on client
We have all data available on client (JSON array, etc)

Can we pass those into report viewer so it will generate report knowing data and RDL?
I'm just little confused if this is completely standalone component and we can use it without providing back end support

Thank you!


3 Replies

MS Mahendran Shanmugam Syncfusion Team July 10, 2019 08:43 AM UTC

Hi Ivan, 

Thanks for your interest in our Syncfusion product. 

Our Report Viewer does not work with out back end services. But we can able to pass the JSON data for RDL report using processing mode as Local as shown in below code example. 
ReportAPIController.cs 
        //Method will be called when initialize the report options before start processing the report         
        public void OnInitReportOptions(ReportViewerOptions reportOption) 
        { 
            reportOption.ReportModel.ProcessingMode = ProcessingMode.Local; 
            reportOption.ReportModel.DataSources.Clear(); 
            reportOption.ReportModel.DataSources.Add(new ReportDataSource { Name = "StoreSales", Value = StoreSales.GetData() }); 
        } 

We have prepared the simple sample for your reference and it can be downloaded from below location. 

Regards, 
Mahendran S. 



ID Ivan Demkovitch July 10, 2019 02:21 PM UTC

Is there any plans to have client-only report viewer?

We do have all our reports defined (RDL) in DB, but our back end not necessarily .NET
All we want is client component to generate report off RDL and data just like Microsoft Report Viewer does in WinForms..




MS Mahendran Shanmugam Syncfusion Team July 11, 2019 06:35 AM UTC

Hi Ivan, 

Sorry for the inconvenience caused. 

As of now we don’t have plan to provide the Report viewer control support client side only. So could you please feel free to use our Report Viewer control with Web API service. 

Regards, 
Mahendran S. 


Loader.
Live Chat Icon For mobile
Up arrow icon