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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

General approach for generating reports (ASP.NET Core WebAPI backend / Angular frontend)

Thread ID:

Created:

Updated:

Platform:

Replies:

131733 Jul 25,2017 01:55 PM UTC Jul 26,2017 01:37 PM UTC Angular 2
loading
Tags: ejReportViewer
cBashTn
Asked On July 25, 2017 02:10 PM UTC

Hi, I want to know the general approach for generating reports in an environment with a Angular SPA that gets all data via .NET Core WebAPI / REST. The use case is that a user wants to get the needed data and visualize it in the SPA in a (Syncfusion) chart and filter it / setting time ranges etc. After that, the user wants to press a button to have a PDF report with some text information and the same configurated chart. SPA: PDF report: What I found out is: 1) I could send all needed chart parameter to the API and there I generate the report with C# and the Syncfusion PDF library for .NET Core. 2) As mentioned we do not have a MVC project. So https://help.syncfusion.com/angular/chart/exporting does not work here. 3) And there is the ReportViewer that seems to be able to generate reports on the SPA without more API calls. Thoughts: 1) is a valid way but one has to make sure the SPA and the report displays the same chart. (2x maintenance). Also, all the data already exists in the SPA. The SPA should be able to generate the PDF by itself without API calls. 3) Is it possible to use the ReportViewer to generate a report without additional API calls? 

cBashTn
Replied On July 25, 2017 02:16 PM UTC

[edit] It seems every time I edit here, the formatting goes nuts. Here the text with original formatting:

Hi,

I want to know the general approach for generating reports in an environment with a Angular SPA that gets all data via .NET Core WebAPI / REST.

The use case is that a user wants to get the needed data and visualize it in the SPA in a (Syncfusion) chart and filter it / setting time ranges etc. 
After that, the user wants to press a button to have a PDF report with some text information and the same configurated chart.

SPA:


PDF report:



What I found out is:
1) I could send all needed chart parameter to the API and there I generate the report with C# and 
.
2) As mentioned we do not have a MVC project. So ,
https://help.syncfusion.
com/angular/chart/exporting
 does not work here.
3) And there is the ReportViewer that seems to be able to generate reports on the SPA without more API calls.

Thoughts:
1) is a valid way but one has to make sure the SPA and the report displays the same chart. (2x maintenance). Also, all the data already exists in the SPA. The SPA should be able to generate the PDF by itself without API calls.

3) Is it possible to use the ReportViewer to generate a report without additional API calls? 


Yuvaraj Devarajan [Syncfusion]
Replied On July 26, 2017 01:37 PM UTC

Hi Sebastian, 

Thanks for contacting Syncfusion support. 

We can able to generate/design the report with chart report item using Syncfusion WPF ReportDesigner or MS ReportBuilder and load the generated report in Syncfusion ReportViewer in Angular platform.  Our ReportViewer control requires the WebAPI service to process the report in server side and could not render/process the report without WebAPI Restful service. Currently, we don’t have ASP.NET Core support for ReportViewer control and already logged feature report for “Support for ReportViewer on DNX library support for Cross Platforms”. It can be expected in Volume 4, 2017 release which is tentatively scheduled to be released in the month October.  

We have prepared a sample using chart report item and it can be downloade from below location, 

Please refer below UG documentation link to design a report in Syncfusion WPF ReportDesigner, 

Also please refer to the MSDN documentation link to create the Report using MS ReportBuilder, 

Please refer to the below UG documentation link load the report in Syncfusion ReportViewer.  

Regards, 
Yuvaraj D. 


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.

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

;