Posted 21 June 2022, 9:20 am EST
Is it possible to use ActiveReports Professional with ActiveReportsJS? I have been using both together in development and it seems to work but I’m not sure if the JSON formats will diverge down the line.
Context: I have a React app with a .NET Core backend, where both are on different domains. I was originally using ActiveReports Professional with the web-designer JS following the instructions here: Integration to React Application | ActiveReports 16 .NET Edition
However, I ran into a few issues. Whenever I make an API call, I get a CORS error. All other API calls from my application are working to that backend so I should not be getting this CORS issue. I saw this link that could help with the error but it only fixed it for the designer portion, not the viewer: Viewing Reports from Different Domains using CORS | ActiveReports 16 .NET Edition
It also makes a bunch of API requests and I wonder if there is a way to have more control of the API requests that are made. That’s why I tried ActiveReportsJS because the developer has more control on the API requests to the backend. Additionally, with ActiveReportsJS, we don’t need to add JS/CSS files to the index.html page so we can keep it contained within the component in need.
I know there is a lot here but just trying to get some guidance on what the best approach is here.