[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
.
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?